[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20171003140406.26060-2-ming.lei@redhat.com>
Date: Tue, 3 Oct 2017 22:03:59 +0800
From: Ming Lei <ming.lei@...hat.com>
To: Jens Axboe <axboe@...com>, linux-block@...r.kernel.org,
Christoph Hellwig <hch@...radead.org>,
linux-scsi@...r.kernel.org,
"Martin K . Petersen" <martin.petersen@...cle.com>,
"James E . J . Bottomley" <jejb@...ux.vnet.ibm.com>
Cc: Bart Van Assche <bart.vanassche@...disk.com>,
Oleksandr Natalenko <oleksandr@...alenko.name>,
Johannes Thumshirn <jthumshirn@...e.de>,
Cathy Avery <cavery@...hat.com>,
Martin Steigerwald <martin@...htvoll.de>,
linux-kernel@...r.kernel.org, Hannes Reinecke <hare@...e.com>,
Ming Lei <ming.lei@...hat.com>,
Bart Van Assche <Bart.VanAssche@....com>
Subject: [PATCH V8 1/8] blk-mq: only run hw queues for blk-mq
This patch just makes it explicitely.
Tested-by: Oleksandr Natalenko <oleksandr@...alenko.name>
Tested-by: Martin Steigerwald <martin@...htvoll.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@...e.de>
Cc: Bart Van Assche <Bart.VanAssche@....com>
Reviewed-by: Christoph Hellwig <hch@....de>
Signed-off-by: Ming Lei <ming.lei@...hat.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
Powered by blists - more mailing lists