Skip to content

Commit bfe373f

Browse files
Hou Taoaxboe
authored andcommitted
blk-mq-debugfs: update blk_queue_flag_name[] accordingly for new flags
Else there may be magic numbers in /sys/kernel/debug/block/*/state. Signed-off-by: Hou Tao <[email protected]> Reviewed-by: Bart Van Assche <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 1b52671 commit bfe373f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

block/blk-mq-debugfs.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ static const char *const blk_queue_flag_name[] = {
125125
QUEUE_FLAG_NAME(REGISTERED),
126126
QUEUE_FLAG_NAME(SCSI_PASSTHROUGH),
127127
QUEUE_FLAG_NAME(QUIESCED),
128+
QUEUE_FLAG_NAME(PCI_P2PDMA),
129+
QUEUE_FLAG_NAME(ZONE_RESETALL),
130+
QUEUE_FLAG_NAME(RQ_ALLOC_TIME),
128131
};
129132
#undef QUEUE_FLAG_NAME
130133

include/linux/blkdev.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,7 @@ struct request_queue {
590590
u64 write_hints[BLK_MAX_WRITE_HINTS];
591591
};
592592

593+
/* Keep blk_queue_flag_name[] in sync with the definitions below */
593594
#define QUEUE_FLAG_STOPPED 0 /* queue is stopped */
594595
#define QUEUE_FLAG_DYING 1 /* queue being torn down */
595596
#define QUEUE_FLAG_NOMERGES 3 /* disable merge attempts */

0 commit comments

Comments
 (0)