diff --git a/block/blk-core.c b/block/blk-core.c index a90b79c06b05db9e31e0384bc1e2d7b47ec1c3c3..007142f8f71fffb4af8643bca86436cc13e701cd 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -782,18 +782,6 @@ void blk_cleanup_queue(struct request_queue *q) queue_flag_set(QUEUE_FLAG_DEAD, q); spin_unlock_irq(lock); - /* - * make sure all in-progress dispatch are completed because - * blk_freeze_queue() can only complete all requests, and - * dispatch may still be in-progress since we dispatch requests - * from more than one contexts. - * - * We rely on driver to deal with the race in case that queue - * initialization isn't done. - */ - if (q->mq_ops && blk_queue_init_done(q)) - blk_mq_quiesce_queue(q); - /* for synchronous bio-based driver finish in-flight integrity i/o */ blk_flush_integrity();