Skip to content

Commit

Permalink
block: Relocate BLK_MQ_MAX_DEPTH
Browse files Browse the repository at this point in the history
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
johnpgarry authored and axboe committed Jul 19, 2024
1 parent 3dff615 commit 793356d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/linux/blk-mq.h
Original file line number Diff line number Diff line change
Expand Up @@ -670,8 +670,6 @@ enum {

/* hw queue is inactive after all its CPUs become offline */
BLK_MQ_S_INACTIVE = 3,

BLK_MQ_MAX_DEPTH = 10240,
};
#define BLK_MQ_FLAG_TO_ALLOC_POLICY(flags) \
((flags >> BLK_MQ_F_ALLOC_POLICY_START_BIT) & \
Expand All @@ -680,6 +678,7 @@ enum {
((policy & ((1 << BLK_MQ_F_ALLOC_POLICY_BITS) - 1)) \
<< BLK_MQ_F_ALLOC_POLICY_START_BIT)

#define BLK_MQ_MAX_DEPTH (10240)
#define BLK_MQ_NO_HCTX_IDX (-1U)

struct gendisk *__blk_mq_alloc_disk(struct blk_mq_tag_set *set,
Expand Down

0 comments on commit 793356d

Please sign in to comment.