Commit fe6bacba authored by Li Lingfeng's avatar Li Lingfeng
Browse files

elevator: reserve space for structures in elevator

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8ZUL1



--------------------------------

Reserve space for struct elevator_mq_ops/elevator_type.

Signed-off-by: default avatarLi Lingfeng <lilingfeng3@huawei.com>
parent 6f420dad
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -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)