]> git.baikalelectronics.ru Git - kernel.git/commit
block: add a read barrier in blk_queue_enter()
authorMing Lei <tom.leiming@gmail.com>
Mon, 27 Mar 2017 12:06:56 +0000 (20:06 +0800)
committerJens Axboe <axboe@fb.com>
Wed, 29 Mar 2017 14:03:42 +0000 (08:03 -0600)
commit483a1eba9d14c416e00406cbd73da79073b7234c
tree02802c310ece8ac247bb016c5d58555612eea76e
parentd080daa2070d5142612cddc93681f0a2c92bf7d2
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>
block/blk-core.c