All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] block: decode QUEUE_FLAG_HCTX_ACTIVE in debugfs output
@ 2021-10-04  7:22 Johannes Thumshirn
  2021-10-04 12:59 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Johannes Thumshirn @ 2021-10-04  7:22 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-block, Johannes Thumshirn

While debugging an issue we've found that $DEBUGFS/block/$disk/state
doesn't decode QUEUE_FLAG_HCTX_ACTIVE but only displays its numerical
value.

Add QUEUE_FLAG(HCTX_ACTIVE) to the blk_queue_flag_name array so it'll get
decoded properly.

Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
---
 block/blk-mq-debugfs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c
index 4b66d2776eda..3b38d15723de 100644
--- a/block/blk-mq-debugfs.c
+++ b/block/blk-mq-debugfs.c
@@ -129,6 +129,7 @@ static const char *const blk_queue_flag_name[] = {
 	QUEUE_FLAG_NAME(PCI_P2PDMA),
 	QUEUE_FLAG_NAME(ZONE_RESETALL),
 	QUEUE_FLAG_NAME(RQ_ALLOC_TIME),
+	QUEUE_FLAG_NAME(HCTX_ACTIVE),
 	QUEUE_FLAG_NAME(NOWAIT),
 };
 #undef QUEUE_FLAG_NAME
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] block: decode QUEUE_FLAG_HCTX_ACTIVE in debugfs output
  2021-10-04  7:22 [PATCH] block: decode QUEUE_FLAG_HCTX_ACTIVE in debugfs output Johannes Thumshirn
@ 2021-10-04 12:59 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2021-10-04 12:59 UTC (permalink / raw)
  To: Johannes Thumshirn; +Cc: linux-block

On 10/4/21 1:22 AM, Johannes Thumshirn wrote:
> While debugging an issue we've found that $DEBUGFS/block/$disk/state
> doesn't decode QUEUE_FLAG_HCTX_ACTIVE but only displays its numerical
> value.
> 
> Add QUEUE_FLAG(HCTX_ACTIVE) to the blk_queue_flag_name array so it'll get
> decoded properly.

Applied, thanks.

We really should have some way to catch this at build time, this isn't the
first (and won't be the last) time we run into this.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-04 13:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-04  7:22 [PATCH] block: decode QUEUE_FLAG_HCTX_ACTIVE in debugfs output Johannes Thumshirn
2021-10-04 12:59 ` Jens Axboe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.