Commit 3dff6155 authored by John Garry's avatar John Garry Committed by Jens Axboe

block: Relocate BLK_MQ_CPU_WORK_BATCH

BLK_MQ_CPU_WORK_BATCH is defined in include/linux/blk-mq.h, but only used
in blk-mq.c, so relocate to block/blk-mq.h
Signed-off-by: default avatarJohn Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/r/20240719112912.3830443-6-john.g.garry@oracle.comSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent c8f51fee
...@@ -36,6 +36,8 @@ enum { ...@@ -36,6 +36,8 @@ enum {
BLK_MQ_TAG_MAX = BLK_MQ_NO_TAG - 1, BLK_MQ_TAG_MAX = BLK_MQ_NO_TAG - 1,
}; };
#define BLK_MQ_CPU_WORK_BATCH (8)
typedef unsigned int __bitwise blk_insert_t; typedef unsigned int __bitwise blk_insert_t;
#define BLK_MQ_INSERT_AT_HEAD ((__force blk_insert_t)0x01) #define BLK_MQ_INSERT_AT_HEAD ((__force blk_insert_t)0x01)
......
...@@ -672,8 +672,6 @@ enum { ...@@ -672,8 +672,6 @@ enum {
BLK_MQ_S_INACTIVE = 3, BLK_MQ_S_INACTIVE = 3,
BLK_MQ_MAX_DEPTH = 10240, BLK_MQ_MAX_DEPTH = 10240,
BLK_MQ_CPU_WORK_BATCH = 8,
}; };
#define BLK_MQ_FLAG_TO_ALLOC_POLICY(flags) \ #define BLK_MQ_FLAG_TO_ALLOC_POLICY(flags) \
((flags >> BLK_MQ_F_ALLOC_POLICY_START_BIT) & \ ((flags >> BLK_MQ_F_ALLOC_POLICY_START_BIT) & \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment