Skip to content

Commit c8f51fe

Browse files
Christoph Hellwigaxboe
authored andcommitted
block: remove QUEUE_FLAG_STOPPED
QUEUE_FLAG_STOPPED is entirely unused. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: John Garry <john.g.garry@oracle.com> Link: https://lore.kernel.org/r/20240719112912.3830443-5-john.g.garry@oracle.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 1c83c53 commit c8f51fe

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

block/blk-mq-debugfs.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ static int queue_pm_only_show(void *data, struct seq_file *m)
7979

8080
#define QUEUE_FLAG_NAME(name) [QUEUE_FLAG_##name] = #name
8181
static const char *const blk_queue_flag_name[] = {
82-
QUEUE_FLAG_NAME(STOPPED),
8382
QUEUE_FLAG_NAME(DYING),
8483
QUEUE_FLAG_NAME(NOMERGES),
8584
QUEUE_FLAG_NAME(SAME_COMP),

include/linux/blkdev.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,6 @@ struct request_queue {
588588
};
589589

590590
/* Keep blk_queue_flag_name[] in sync with the definitions below */
591-
#define QUEUE_FLAG_STOPPED 0 /* queue is stopped */
592591
#define QUEUE_FLAG_DYING 1 /* queue being torn down */
593592
#define QUEUE_FLAG_NOMERGES 3 /* disable merge attempts */
594593
#define QUEUE_FLAG_SAME_COMP 4 /* complete on same CPU-group */
@@ -608,7 +607,6 @@ struct request_queue {
608607
void blk_queue_flag_set(unsigned int flag, struct request_queue *q);
609608
void blk_queue_flag_clear(unsigned int flag, struct request_queue *q);
610609

611-
#define blk_queue_stopped(q) test_bit(QUEUE_FLAG_STOPPED, &(q)->queue_flags)
612610
#define blk_queue_dying(q) test_bit(QUEUE_FLAG_DYING, &(q)->queue_flags)
613611
#define blk_queue_init_done(q) test_bit(QUEUE_FLAG_INIT_DONE, &(q)->queue_flags)
614612
#define blk_queue_nomerges(q) test_bit(QUEUE_FLAG_NOMERGES, &(q)->queue_flags)

0 commit comments

Comments
 (0)