hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I8ZUL1
--------------------------------
Reserve space for struct elevator_mq_ops/elevator_type.
Signed-off-by: Li Lingfeng lilingfeng3@huawei.com --- block/elevator.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
diff --git a/block/elevator.h b/block/elevator.h index 7ca3d7b6ed82..8b8099c6a75f 100644 --- a/block/elevator.h +++ b/block/elevator.h @@ -4,6 +4,7 @@
#include <linux/percpu.h> #include <linux/hashtable.h> +#include <linux/kabi.h> #include "blk-mq.h"
struct io_cq; @@ -48,6 +49,15 @@ struct elevator_mq_ops { struct request *(*next_request)(struct request_queue *, struct request *); void (*init_icq)(struct io_cq *); void (*exit_icq)(struct io_cq *); + + KABI_RESERVE(1) + KABI_RESERVE(2) + KABI_RESERVE(3) + KABI_RESERVE(4) + KABI_RESERVE(5) + KABI_RESERVE(6) + KABI_RESERVE(7) + KABI_RESERVE(8) };
#define ELV_NAME_MAX (16) @@ -84,6 +94,11 @@ struct elevator_type /* managed by elevator core */ char icq_cache_name[ELV_NAME_MAX + 6]; /* elvname + "_io_cq" */ struct list_head list; + + KABI_RESERVE(1) + KABI_RESERVE(2) + KABI_RESERVE(3) + KABI_RESERVE(4) };
static inline bool elevator_tryget(struct elevator_type *e)