diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2016-08-16 16:48:36 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-15 08:27:51 +0200 |
commit | d3a6bd7b77ce9c9c19b37226ab0640a8918c4663 (patch) | |
tree | f052baefade92efa50928330fe23ef39b159bdcd /kernel | |
parent | 1d12bad745acfc02d452a13f32b4087865964c9a (diff) | |
download | lwn-d3a6bd7b77ce9c9c19b37226ab0640a8918c4663.tar.gz lwn-d3a6bd7b77ce9c9c19b37226ab0640a8918c4663.zip |
block: Fix race triggered by blk_set_queue_dying()
commit 1b856086813be9371929b6cc62045f9fd470f5a0 upstream.
blk_set_queue_dying() can be called while another thread is
submitting I/O or changing queue flags, e.g. through dm_stop_queue().
Hence protect the QUEUE_FLAG_DYING flag change with locking.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions