|
@@ -1886,9 +1886,7 @@ static void __dm_destroy(struct mapped_device *md, bool wait)
|
|
|
set_bit(DMF_FREEING, &md->flags);
|
|
|
spin_unlock(&_minor_lock);
|
|
|
|
|
|
- spin_lock_irq(q->queue_lock);
|
|
|
- queue_flag_set(QUEUE_FLAG_DYING, q);
|
|
|
- spin_unlock_irq(q->queue_lock);
|
|
|
+ blk_set_queue_dying(q);
|
|
|
|
|
|
if (dm_request_based(md) && md->kworker_task)
|
|
|
kthread_flush_worker(&md->kworker);
|