[PATCH 1/1] blk-mq: fix comment as bt_tags_for_each() is not only for started request

From: Dongli Zhang
Date: Tue Oct 20 2020 - 18:42:01 EST


Since the introduction of 'BT_TAG_ITER_STARTED' by commit 602380d28e28
("blk-mq: add blk_mq_all_tag_iter"), the bt_tags_for_each() is not only
used for started request, e.g., in below case:

blk_mq_hctx_has_requests()
-> blk_mq_all_tag_iter()
-> __blk_mq_all_tag_iter() --> only BT_TAG_ITER_STATIC_RQS is set
-> bt_tags_for_each()
-> bt_tags_iter()

Signed-off-by: Dongli Zhang <dongli.zhang@xxxxxxxxxx>
---
block/blk-mq-tag.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/block/blk-mq-tag.c b/block/blk-mq-tag.c
index 9c92053e704d..43af5063fe2e 100644
--- a/block/blk-mq-tag.c
+++ b/block/blk-mq-tag.c
@@ -289,10 +289,10 @@ static bool bt_tags_iter(struct sbitmap *bitmap, unsigned int bitnr, void *data)
* @tags: Tag map to iterate over.
* @bt: sbitmap to examine. This is either the breserved_tags member
* or the bitmap_tags member of struct blk_mq_tags.
- * @fn: Pointer to the function that will be called for each started
- * request. @fn will be called as follows: @fn(rq, @data,
- * @reserved) where rq is a pointer to a request. Return true
- * to continue iterating tags, false to stop.
+ * @fn: Pointer to the function that will be called for each request
+ * depending on the value of @flags. @fn will be called as
+ * follows: @fn(rq, @data, @reserved) where rq is a pointer to a
+ * request. Return true to continue iterating tags, false to stop.
* @data: Will be passed as second argument to @fn.
* @flags: BT_TAG_ITER_*
*/
--
2.17.1