summaryrefslogtreecommitdiffstats
path: root/include/linux/blk-mq.h
diff options
context:
space:
mode:
authorMing Lei2017-03-27 14:06:56 +0200
committerJens Axboe2017-03-29 16:03:42 +0200
commit5ed61d3f08d44937859dc537c5362ca293c98b04 (patch)
tree02802c310ece8ac247bb016c5d58555612eea76e /include/linux/blk-mq.h
parentblk-mq: comment on races related with timeout handler (diff)
downloadkernel-qcow2-linux-5ed61d3f08d44937859dc537c5362ca293c98b04.tar.gz
kernel-qcow2-linux-5ed61d3f08d44937859dc537c5362ca293c98b04.tar.xz
kernel-qcow2-linux-5ed61d3f08d44937859dc537c5362ca293c98b04.zip
block: add a read barrier in blk_queue_enter()
Without the barrier, reading DEAD flag of .q_usage_counter and reading .mq_freeze_depth may be reordered, then the following wait_event_interruptible() may never return. Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Ming Lei <tom.leiming@gmail.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/blk-mq.h')
0 files changed, 0 insertions, 0 deletions