summaryrefslogtreecommitdiffstats
path: root/block/blk-mq.c
diff options
context:
space:
mode:
authorYufen Yu <yuyufen@huawei.com>2019-03-24 10:57:08 +0100
committerJens Axboe <axboe@kernel.dk>2019-03-24 17:26:17 +0100
commit85fae294e1a506b4213668716acb586bd6b4ae1e (patch)
treebe8c8ee94ce85df4e09a10b915f0abff5fc64127 /block/blk-mq.c
parentblk-mq: use blk_mq_put_driver_tag() to put tag (diff)
downloadlinux-85fae294e1a506b4213668716acb586bd6b4ae1e.tar.xz
linux-85fae294e1a506b4213668716acb586bd6b4ae1e.zip
blk-mq: update comment for blk_mq_hctx_has_pending()
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> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r--block/blk-mq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 70b210a308c4..28080b0235f0 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)
{