blk-mq: Fix the blk_mq_tagset_busy_iter() documentation
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.
--- block/blk-mq-tag.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
block/blk-mq-tag.c +3 -4
@@ -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
Bart,
Quoted 4 lines
Commit
2dd6532e9591("blk-mq: Drop 'reserved' arg ofbusy_tag_iter_fn") removed the 'reserved' argument from tag iteration callback functions. Bring theblk_mq_tagset_busy_iter()documentation in sync with that change.
Signature · 1 line
Martin K. Petersen
Quoted 10 lines · Bart Van Assche
Commit
2dd6532e9591("blk-mq: Drop 'reserved' arg ofbusy_tag_iter_fn") removed the 'reserved' argument from tag iteration callback functions. Bring theblk_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]>Signed-off-by Bart Van Assche <[email protected]>
Thanks,
Ming
Quoted 22 lines · Bart Van Assche
Commit
2dd6532e9591("blk-mq: Drop 'reserved' arg ofbusy_tag_iter_fn") removed the 'reserved' argument from tag iteration callback functions. Bring theblk_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]>Signed-off-by Bart Van Assche <[email protected]>--- block/blk-mq-tag.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)block/blk-mq-tag.c +0
-0@@ -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
Quoted 6 lines · Bart Van Assche
Commit
2dd6532e9591("blk-mq: Drop 'reserved' arg ofbusy_tag_iter_fn") removed the 'reserved' argument from tag iteration callback functions. Bring theblk_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