diff options
author | Alexander Gordeev <agordeev@redhat.com> | 2014-06-17 22:12:35 -0700 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-06-17 22:12:35 -0700 |
commit | 8537b12034cf1fd3fab3da2c859d71f76846fae9 (patch) | |
tree | eef471e49e99b4e78d180f1158258ef1d5eb0aca /block/blk-mq-tag.h | |
parent | 736ed4de766d4f0e8e6142dd4f9d73ef61835ed9 (diff) | |
download | linux-stable-8537b12034cf1fd3fab3da2c859d71f76846fae9.tar.gz linux-stable-8537b12034cf1fd3fab3da2c859d71f76846fae9.tar.bz2 linux-stable-8537b12034cf1fd3fab3da2c859d71f76846fae9.zip |
blk-mq: bitmap tag: fix races on shared ::wake_index fields
Fix racy updates of shared blk_mq_bitmap_tags::wake_index
and blk_mq_hw_ctx::wake_index fields.
Cc: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-mq-tag.h')
-rw-r--r-- | block/blk-mq-tag.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq-tag.h b/block/blk-mq-tag.h index 98696a65d4d4..6206ed17ef76 100644 --- a/block/blk-mq-tag.h +++ b/block/blk-mq-tag.h @@ -24,7 +24,7 @@ struct blk_mq_bitmap_tags { unsigned int map_nr; struct blk_align_bitmap *map; - unsigned int wake_index; + atomic_t wake_index; struct bt_wait_state *bs; }; |