diff options
author | Mike Snitzer <[email protected]> | 2016-09-01 11:59:33 -0400 |
---|---|---|
committer | Mike Snitzer <[email protected]> | 2016-09-14 13:56:38 -0400 |
commit | 9dbeaeabacb26260d1621fe58f0f6fdedc8860d4 (patch) | |
tree | 4a2ead82f0a872b5046b44df407b37ca8a3065a9 /lib/mpi/mpi-bit.c | |
parent | 2397a15aff35b5b4eed732ce81fda5a9d15053f9 (diff) |
dm rq: take request_queue lock while clearing QUEUE_FLAG_STOPPED
Every call of queue_flag_clear_unlocked() after block device
initialization has finished is wrong if blk_cleanup_queue() can be
called concurrently. Convert queue_flag_clear_unlocked() into
queue_flag_clear() and protect it by the block layer queue lock.
Also, factor out dm_mq_start_queue().
Reported-by: Bart Van Assche <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Cc: [email protected]
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions