Re: [PATCH] block: Fix race triggered by blk_set_queue_dying()
From: Jens Axboe <axboe@kernel.dk>
Date: 2016-08-17 01:37:16
From: Jens Axboe <axboe@kernel.dk>
Date: 2016-08-17 01:37:16
On 08/16/2016 05:48 PM, Bart Van Assche wrote:
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.
Added, thanks. -- Jens Axboe