]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq-debugfs: Show active requests per queue for shared tags
authorJohn Garry <john.garry@huawei.com>
Fri, 29 Oct 2021 08:40:23 +0000 (16:40 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 29 Oct 2021 12:53:34 +0000 (06:53 -0600)
commitdc3d80790749504bf87259053e0cf07a2f7f67c6
tree0a4102bf7d2cbe68ffedd49d6b59a4af52460917
parentbf761c1e4fb3ecfd73839c97bc5297ba866db1bd
blk-mq-debugfs: Show active requests per queue for shared tags

Currently we show the hctx.active value for the per-hctx "active" file.

However this is not maintained for shared tags, and we instead keep a
record of the number active requests per request queue - see commit
93e7de2d7ad7 ("blk-mq: Record active_queues_shared_sbitmap per tag_set for
when using shared sbitmap).

Change for the case of shared tags to show the active requests per request
queue by using __blk_mq_active_requests() helper.

Signed-off-by: John Garry <john.garry@huawei.com>
Link: https://lore.kernel.org/r/1635496823-33515-1-git-send-email-john.garry@huawei.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-debugfs.c