block: Fix a comment in blk_cleanup_queue()
diff mbox series

Message ID 20190701154230.202921-1-bvanassche@acm.org
State New
Headers show
Series
  • block: Fix a comment in blk_cleanup_queue()
Related show

Commit Message

Bart Van Assche July 1, 2019, 3:42 p.m. UTC
Change a reference to the legacy block layer into a reference to blk-mq.

Cc: Christoph Hellwig <hch@infradead.org>
Cc: Hannes Reinecke <hare@suse.com>
Cc: James Smart <james.smart@broadcom.com>
Cc: Ming Lei <ming.lei@redhat.com>
Cc: Jianchao Wang <jianchao.w.wang@oracle.com>
Cc: Dongli Zhang <dongli.zhang@oracle.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
---
 block/blk-core.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Chaitanya Kulkarni July 1, 2019, 3:47 p.m. UTC | #1
Looks good.
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>

On 07/01/2019 08:42 AM, Bart Van Assche wrote:
> * prevent that blk_mq_run_hw_queues() accesses the hardware queues

Patch
diff mbox series

diff --git a/block/blk-core.c b/block/blk-core.c
index 2e5e677d1cee..6361419f0b6e 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -346,7 +346,8 @@  void blk_cleanup_queue(struct request_queue *q)
 
 	/*
 	 * Drain all requests queued before DYING marking. Set DEAD flag to
-	 * prevent that q->request_fn() gets invoked after draining finished.
+	 * prevent that blk_mq_run_hw_queues() accesses the hardware queues
+	 * after draining finished.
 	 */
 	blk_freeze_queue(q);