Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1742519 > unrolled thread

[PATCH V7 1/6] blk-mq: only run hw queues for blk-mq

Started byMing Lei <ming.lei@redhat.com>
First post2017-09-30 08:20 +0200
Last post2017-10-02 22:50 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH V7 1/6] blk-mq: only run hw queues for blk-mq Ming Lei <ming.lei@redhat.com> - 2017-09-30 08:20 +0200
    Re: [PATCH V7 1/6] blk-mq: only run hw queues for blk-mq Christoph Hellwig <hch@infradead.org> - 2017-10-02 22:50 +0200

#1742519 — [PATCH V7 1/6] blk-mq: only run hw queues for blk-mq

FromMing Lei <ming.lei@redhat.com>
Date2017-09-30 08:20 +0200
Subject[PATCH V7 1/6] blk-mq: only run hw queues for blk-mq
Message-ID<uvji2-nu-5@gated-at.bofh.it>
This patch just makes it explicitely.

Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name>
Tested-by: Martin Steigerwald <martin@lichtvoll.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Cc: Bart Van Assche <Bart.VanAssche@wdc.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
---
 block/blk-mq.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/block/blk-mq.c b/block/blk-mq.c
index 98a18609755e..6fd9f86fc86d 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -125,7 +125,8 @@ void blk_freeze_queue_start(struct request_queue *q)
 	freeze_depth = atomic_inc_return(&q->mq_freeze_depth);
 	if (freeze_depth == 1) {
 		percpu_ref_kill(&q->q_usage_counter);
-		blk_mq_run_hw_queues(q, false);
+		if (q->mq_ops)
+			blk_mq_run_hw_queues(q, false);
 	}
 }
 EXPORT_SYMBOL_GPL(blk_freeze_queue_start);
-- 
2.9.5

[toc] | [next] | [standalone]


#1743244

FromChristoph Hellwig <hch@infradead.org>
Date2017-10-02 22:50 +0200
Message-ID<uwfP7-ur-73@gated-at.bofh.it>
In reply to#1742519
Looks fine,

Reviewed-by: Christoph Hellwig <hch@lst.de>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web