aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/blk-core.c')
-rw-r--r--block/blk-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index 0d0bdd65b2d7..c359d72e9d76 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -514,7 +514,7 @@ void blk_cleanup_queue(struct request_queue *q)
514 * prevent that q->request_fn() gets invoked after draining finished. 514 * prevent that q->request_fn() gets invoked after draining finished.
515 */ 515 */
516 if (q->mq_ops) { 516 if (q->mq_ops) {
517 blk_mq_drain_queue(q); 517 blk_mq_freeze_queue(q);
518 spin_lock_irq(lock); 518 spin_lock_irq(lock);
519 } else { 519 } else {
520 spin_lock_irq(lock); 520 spin_lock_irq(lock);