summaryrefslogtreecommitdiffstats
path: root/block/blk-mq.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-10-11 18:06:02 -0600
committerJens Axboe <axboe@kernel.dk>2018-11-07 13:42:31 -0700
commitba7b443422d66b765c1aafe67b050be7dad7c676 (patch)
tree42b87cab560ee10cbcb9c808c7a12de38a6c23fd /block/blk-mq.c
parent7ac257b862f2cfba3a909d1051499d390cffad6c (diff)
downloadblackbird-op-linux-ba7b443422d66b765c1aafe67b050be7dad7c676.tar.gz
blackbird-op-linux-ba7b443422d66b765c1aafe67b050be7dad7c676.zip
blk-mq: remove legacy check in queue blk_freeze_queue()
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>
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r--block/blk-mq.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 4c82dc44d4d8..a58d2d953876 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -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);
}
OpenPOWER on IntegriCloud