diff mbox series

[07/28] blk-mq: remove legacy check in queue blk_freeze_queue()

Message ID 20181025211039.11559-8-axboe@kernel.dk
State Not Applicable
Delegated to: David Miller
Headers show
Series blk-mq driver conversions and legacy path removal | expand

Commit Message

Jens Axboe Oct. 25, 2018, 9:10 p.m. UTC
Signed-off-by: Jens Axboe <axboe@kernel.dk>
---
 block/blk-mq.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Hannes Reinecke Oct. 27, 2018, 10:52 a.m. UTC | #1
On 10/25/18 11:10 PM, Jens Axboe wrote:
> Signed-off-by: Jens Axboe <axboe@kernel.dk>
> ---
>   block/blk-mq.c | 2 --
>   1 file changed, 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);
>   }
>   
> 
Reviewed-by: Hannes Reinecke <hare@suse.com>

Cheers,

Hannes
diff mbox series

Patch

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);
 }