Skip to contentSkip to conversation

blk-mq: Fix the blk_mq_tagset_busy_iter() documentation

PATCH Applied Bart Van Assche 5 participants 5 messages Sep 16, 2025 – Sep 17, 2025 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 blk-mq: Fix the blk_mq_tagset_busy_iter() documentation

Commit 2dd6532e9591 ("blk-mq: Drop 'reserved' arg of busy_tag_iter_fn") removed the 'reserved' argument from tag iteration callback functions. Bring the blk_mq_tagset_busy_iter() documentation in sync with that change.

Cc Jens Axboe <[email protected]>
Cc Christoph Hellwig <[email protected]>
Cc Ming Lei <[email protected]>
Cc John Garry <[email protected]>
---
 block/blk-mq-tag.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
block/blk-mq-tag.c +3 -4
index a63d21a4aab4..0602ca7f1e37 100644
@@ -424,10 +424,9 @@ void blk_mq_all_tag_iter(struct blk_mq_tags *tags, busy_tag_iter_fn *fn,
  * blk_mq_tagset_busy_iter - iterate over all started requests in a tag set
  * @tagset:	Tag set to iterate over.
  * @fn:		Pointer to the function that will be called for each started
- *		request. @fn will be called as follows: @fn(rq, @priv,
- *		reserved) where rq is a pointer to a request. 'reserved'
- *		indicates whether or not @rq is a reserved request. Return
- *		true to continue iterating tags, false to stop.
+ *		request. @fn will be called as follows: @fn(rq, @priv) where
+ *		rq is a pointer to a request. Return true to continue iterating
+ *		tags, false to stop.
  * @priv:	Will be passed as second argument to @fn.
  *
  * We grab one request reference before calling @fn and release it after
Reviewed-by on v1 1/1
#1 lore raw

Bart,

Quoted 4 lines

Commit 2dd6532e9591 ("blk-mq: Drop 'reserved' arg of busy_tag_iter_fn") removed the 'reserved' argument from tag iteration callback functions. Bring the blk_mq_tagset_busy_iter() documentation in sync with that change.

Signature · 1 line
Martin K. Petersen
Reviewed-by on v1 1/1
#2 lore raw
In reply to Bart Van Assche
Quoted 10 lines · Bart Van Assche

Commit 2dd6532e9591 ("blk-mq: Drop 'reserved' arg of busy_tag_iter_fn") removed the 'reserved' argument from tag iteration callback functions. Bring the blk_mq_tagset_busy_iter() documentation in sync with that change.

Cc Jens Axboe <[email protected]>
Cc Christoph Hellwig <[email protected]>
Cc Ming Lei <[email protected]>
Cc John Garry <[email protected]>

Thanks,
Ming

#3 lore raw
In reply to Bart Van Assche
Quoted 22 lines · Bart Van Assche

Commit 2dd6532e9591 ("blk-mq: Drop 'reserved' arg of busy_tag_iter_fn") removed the 'reserved' argument from tag iteration callback functions. Bring the blk_mq_tagset_busy_iter() documentation in sync with that change.

Cc Jens Axboe <[email protected]>
Cc Christoph Hellwig <[email protected]>
Cc Ming Lei <[email protected]>
Cc John Garry <[email protected]>
---
  block/blk-mq-tag.c | 7 +++----
  1 file changed, 3 insertions(+), 4 deletions(-)
block/blk-mq-tag.c +0 -0
index a63d21a4aab4..0602ca7f1e37 100644
@@ -424,10 +424,9 @@ void blk_mq_all_tag_iter(struct blk_mq_tags *tags, busy_tag_iter_fn *fn,
   * blk_mq_tagset_busy_iter - iterate over all started requests in a tag set
   * @tagset:	Tag set to iterate over.
   * @fn:		Pointer to the function that will be called for each started

block/blk-mq-tag.c void blk_mq_all_tag_iter(struct blk_mq_tags *tags, busy_tag_iter_fn *fn, · line 432

Quoted 10 lines
block/blk-mq-tag.c +3 -4
- *		request. @fn will be called as follows: @fn(rq, @priv,
- *		reserved) where rq is a pointer to a request. 'reserved'
- *		indicates whether or not @rq is a reserved request. Return
- *		true to continue iterating tags, false to stop.
+ *		request. @fn will be called as follows: @fn(rq, @priv) where
+ *		rq is a pointer to a request. Return true to continue iterating
+ *		tags, false to stop.
   * @priv:	Will be passed as second argument to @fn.
   *
   * We grab one request reference before calling @fn and release it after

I see other users of busy_tag_iter_fn which need the documentation updated, like blk_mq_queue_tag_busy_iter() and blk_mq_all_tag_iter(). Please consider updating them also, thanks

maintainer Applied
#4 lore raw
In reply to Bart Van Assche
Quoted 6 lines · Bart Van Assche

Commit 2dd6532e9591 ("blk-mq: Drop 'reserved' arg of busy_tag_iter_fn") removed the 'reserved' argument from tag iteration callback functions. Bring the blk_mq_tagset_busy_iter() documentation in sync with that change.

Applied, thanks!

[1/1] blk-mq: Fix the blk_mq_tagset_busy_iter() documentation

      commit: 0b507305a08c134722f363de6fe6f1ba84e313b7

Best regards,

Signature · 1 line
Jens Axboe