Message ID | 1610096137-187414-1-git-send-email-john.garry@huawei.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | blk-mq-debugfs: Add decode for BLK_MQ_F_TAG_HCTX_SHARED | expand |
On 1/8/21 1:55 AM, John Garry wrote: > 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 Applied, thanks.
On 1/8/21 9:55 AM, John Garry wrote: > 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: 32bc15afed04b ("blk-mq: Facilitate a shared sbitmap per tagset") > Signed-off-by: John Garry <john.garry@huawei.com> > > diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c > index 3094542e12ae..ea4ab98e6b25 100644 > --- a/block/blk-mq-debugfs.c > +++ b/block/blk-mq-debugfs.c > @@ -245,6 +245,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 > > Reviewed-by: Hannes Reinecke <hare@suse.de> Cheers, Hannes
diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c index 3094542e12ae..ea4ab98e6b25 100644 --- a/block/blk-mq-debugfs.c +++ b/block/blk-mq-debugfs.c @@ -245,6 +245,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
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: 32bc15afed04b ("blk-mq: Facilitate a shared sbitmap per tagset") Signed-off-by: John Garry <john.garry@huawei.com>