[RFC PATCH 03/12] fs, block: interface to register/unregister the raw-queue
Kanchan Joshi
joshi.k at samsung.com
Sat Apr 29 02:39:16 PDT 2023
From: Anuj Gupta <anuj20.g at samsung.com>
Introduce register/unregister callbacks to fops and mq_ops, so that
callers can attach/detach to raw-queues.
Signed-off-by: Anuj Gupta <anuj20.g at samsung.com>
Signed-off-by: Kanchan Joshi <joshi.k at samsung.com>
---
include/linux/blk-mq.h | 2 ++
include/linux/fs.h | 2 ++
2 files changed, 4 insertions(+)
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h
index 06caacd77ed6..7d6790be4847 100644
--- a/include/linux/blk-mq.h
+++ b/include/linux/blk-mq.h
@@ -657,6 +657,8 @@ struct blk_mq_ops {
* information about a request.
*/
void (*show_rq)(struct seq_file *m, struct request *rq);
+ int (*register_queue)(void *data);
+ int (*unregister_queue)(void *data, int qid);
#endif
};
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 475d88640d3d..79acccc5e7d4 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1798,6 +1798,8 @@ struct file_operations {
int (*uring_cmd)(struct io_uring_cmd *ioucmd, unsigned int issue_flags);
int (*uring_cmd_iopoll)(struct io_uring_cmd *, struct io_comp_batch *,
unsigned int poll_flags);
+ int (*register_queue)(struct file *f);
+ int (*unregister_queue)(struct file *f, int qid);
} __randomize_layout;
struct inode_operations {
--
2.25.1
More information about the Linux-nvme
mailing list