]> git.baikalelectronics.ru Git - kernel.git/commitdiff
blk-mq-debugfs: Add decode for BLK_MQ_F_TAG_HCTX_SHARED
authorJohn Garry <john.garry@huawei.com>
Fri, 8 Jan 2021 08:55:37 +0000 (16:55 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 8 Jan 2021 15:20:27 +0000 (08:20 -0700)
Showing the hctx flags for when BLK_MQ_F_TAG_HCTX_SHARED is set gives
something like:

root@debian:/home/john# more /sys/kernel/debug/block/sda/hctx0/flags
alloc_policy=FIFO SHOULD_MERGE|TAG_QUEUE_SHARED|3

Add the decoding for that flag.

Fixes: ce6f9fb44f4ef ("blk-mq: Facilitate a shared sbitmap per tagset")
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-debugfs.c

index e21eed20a1551d64e6fb85c67d56450cbe1d7d32..712a95f74ccb8a53a05760d953d1faebd2f12183 100644 (file)
@@ -246,6 +246,7 @@ static const char *const hctx_flag_name[] = {
        HCTX_FLAG_NAME(BLOCKING),
        HCTX_FLAG_NAME(NO_SCHED),
        HCTX_FLAG_NAME(STACKING),
+       HCTX_FLAG_NAME(TAG_HCTX_SHARED),
 };
 #undef HCTX_FLAG_NAME