diff mbox series

[2/2] blk-mq: update comment for blk_mq_hctx_has_pending()

Message ID 20190324095708.77658-3-yuyufen@huawei.com (mailing list archive)
State New, archived
Headers show
Series blk-mq: cleaup code and update comment | expand

Commit Message

Yufen Yu March 24, 2019, 9:57 a.m. UTC
For now, blk_mq_hctx_has_pending() checks any of ctx, hctx->dispatch
or io scheduler have pending work. So, update the comment accordingly.

Signed-off-by: Yufen Yu <yuyufen@huawei.com>
---
 block/blk-mq.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/block/blk-mq.c b/block/blk-mq.c
index 2ad06150ebff..e3f2c85f048c 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -59,7 +59,8 @@  static int blk_mq_poll_stats_bkt(const struct request *rq)
 }
 
 /*
- * Check if any of the ctx's have pending work in this hardware queue
+ * Check if any of the ctx, dispatch list or elevator
+ * have pending work in this hardware queue.
  */
 static bool blk_mq_hctx_has_pending(struct blk_mq_hw_ctx *hctx)
 {