linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH ] block: don't call blk_mq_quiesce_queue() during switching mq sched
@ 2017-04-28  7:32 Ming Lei
  2017-04-28 13:42 ` Jens Axboe
  0 siblings, 1 reply; 6+ messages in thread
From: Ming Lei @ 2017-04-28  7:32 UTC (permalink / raw)
  To: Jens Axboe, linux-block
  Cc: Christoph Hellwig, Omar Sandoval, Ming Lei, Bart Van Assche

We have freezed queue already, not necessary to call
blk_mq_quiesce_queue() any more, so remove it.

Cc: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
---
 block/elevator.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/block/elevator.c b/block/elevator.c
index bf11e70f008b..c7a4ee682033 100644
--- a/block/elevator.c
+++ b/block/elevator.c
@@ -950,7 +950,6 @@ static int elevator_switch_mq(struct request_queue *q,
 	int ret;
 
 	blk_mq_freeze_queue(q);
-	blk_mq_quiesce_queue(q);
 
 	if (q->elevator) {
 		if (q->elevator->registered)
@@ -978,9 +977,7 @@ static int elevator_switch_mq(struct request_queue *q,
 
 out:
 	blk_mq_unfreeze_queue(q);
-	blk_mq_start_stopped_hw_queues(q, true);
 	return ret;
-
 }
 
 /*
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-05-02 17:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-28  7:32 [PATCH ] block: don't call blk_mq_quiesce_queue() during switching mq sched Ming Lei
2017-04-28 13:42 ` Jens Axboe
2017-04-28 15:38   ` Ming Lei
2017-04-28 15:59   ` Bart Van Assche
2017-04-28 23:49     ` Ming Lei
2017-05-02 17:31     ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).