Skip to contentSkip to conversation

block: Fix a comment in blk_cleanup_queue()

PATCH Applied Bart Van Assche 2 participants 2 messages Aug 1, 2019 – Aug 2, 2019 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: Fix a comment in blk_cleanup_queue()

Change a reference to the legacy block layer into a reference to blk-mq.

Cc Christoph Hellwig <[email protected]>
Cc Hannes Reinecke <[email protected]>
Cc James Smart <[email protected]>
Cc Ming Lei <[email protected]>
Cc Jianchao Wang <[email protected]>
Cc Dongli Zhang <[email protected]>
---
 block/blk-core.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
block/blk-core.c +2 -1
index d0cc6e14d2f0..5878504a29af 100644
@@ -344,7 +344,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);
 
Signature · 1 line
2.22.0.770.g0f2c4a37fd-goog
maintainer Applied
#1 lore raw
Quoted 1 line · Bart Van Assche

Change a reference to the legacy block layer into a reference to blk-mq.

Applied, thanks.

Signature · 1 line
Jens Axboe