blk-mq: remove legacy check in queue blk_freeze_queue()
authorJens Axboe <axboe@kernel.dk>
Fri, 12 Oct 2018 00:06:02 +0000 (18:06 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 Nov 2018 20:42:31 +0000 (13:42 -0700)
Reviewed-by: Hannes Reinecke <hare@suse.com>
Tested-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c

index 4c82dc44d4d82d5674840e961a71a0a2dc9ee5e2..a58d2d953876755a8984b4c598561177cfd265d5 100644 (file)
@@ -177,8 +177,6 @@ void blk_freeze_queue(struct request_queue *q)
         * exported to drivers as the only user for unfreeze is blk_mq.
         */
        blk_freeze_queue_start(q);
-       if (!q->mq_ops)
-               blk_drain_queue(q);
        blk_mq_freeze_queue_wait(q);
 }