Skip to content

Commit 1dbdd99

Browse files
morbidrsaaxboe
authored andcommitted
block: decode QUEUE_FLAG_HCTX_ACTIVE in debugfs output
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 <[email protected]> Link: https://lore.kernel.org/r/4351076388918075bd80ef07756f9d2ce63be12c.1633332053.git.johannes.thumshirn@wdc.com Signed-off-by: Jens Axboe <[email protected]>
1 parent 06cc978 commit 1dbdd99

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

block/blk-mq-debugfs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ static const char *const blk_queue_flag_name[] = {
129129
QUEUE_FLAG_NAME(PCI_P2PDMA),
130130
QUEUE_FLAG_NAME(ZONE_RESETALL),
131131
QUEUE_FLAG_NAME(RQ_ALLOC_TIME),
132+
QUEUE_FLAG_NAME(HCTX_ACTIVE),
132133
QUEUE_FLAG_NAME(NOWAIT),
133134
};
134135
#undef QUEUE_FLAG_NAME

0 commit comments

Comments
 (0)