Skip to content

Commit 793356d

Browse files
johnpgarryaxboe
authored andcommitted
block: Relocate BLK_MQ_MAX_DEPTH
BLK_MQ_MAX_DEPTH is defined as an enumerated value, but has no real relation to the other members in its enum, so just use #define to provide the definition. Signed-off-by: John Garry <john.g.garry@oracle.com> Link: https://lore.kernel.org/r/20240719112912.3830443-7-john.g.garry@oracle.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 3dff615 commit 793356d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

include/linux/blk-mq.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,8 +670,6 @@ enum {
670670

671671
/* hw queue is inactive after all its CPUs become offline */
672672
BLK_MQ_S_INACTIVE = 3,
673-
674-
BLK_MQ_MAX_DEPTH = 10240,
675673
};
676674
#define BLK_MQ_FLAG_TO_ALLOC_POLICY(flags) \
677675
((flags >> BLK_MQ_F_ALLOC_POLICY_START_BIT) & \
@@ -680,6 +678,7 @@ enum {
680678
((policy & ((1 << BLK_MQ_F_ALLOC_POLICY_BITS) - 1)) \
681679
<< BLK_MQ_F_ALLOC_POLICY_START_BIT)
682680

681+
#define BLK_MQ_MAX_DEPTH (10240)
683682
#define BLK_MQ_NO_HCTX_IDX (-1U)
684683

685684
struct gendisk *__blk_mq_alloc_disk(struct blk_mq_tag_set *set,

0 commit comments

Comments
 (0)