summaryrefslogtreecommitdiff
path: root/block/blk-mq-tag.h
diff options
context:
space:
mode:
authorAlexander Gordeev <agordeev@redhat.com>2014-06-17 22:12:35 -0700
committerJens Axboe <axboe@fb.com>2014-06-17 22:12:35 -0700
commit8537b12034cf1fd3fab3da2c859d71f76846fae9 (patch)
treeeef471e49e99b4e78d180f1158258ef1d5eb0aca /block/blk-mq-tag.h
parent736ed4de766d4f0e8e6142dd4f9d73ef61835ed9 (diff)
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.h2
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;
};