[RFC 04/13] io_uring: modify unused field in io_uring_cmd to store flags

Kanchan Joshi joshi.k at samsung.com
Mon Dec 20 06:17:25 PST 2021


From: Anuj Gupta <anuj20.g at samsung.com>

This patch modifies the unused field in io_uring_cmd structure to store
the flags. This is a prep patch for providing fixedbufs support via
passthrough ioctls.

Signed-off-by: Anuj Gupta <anuj20.g at samsung.com>
---
 include/linux/io_uring.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/io_uring.h b/include/linux/io_uring.h
index f4b4990a3b62..5ab824ced147 100644
--- a/include/linux/io_uring.h
+++ b/include/linux/io_uring.h
@@ -12,7 +12,7 @@
 struct io_uring_cmd {
 	struct file	*file;
 	__u16		op;
-	__u16		unused;
+	__u16		flags;
 	__u32		len;
 	/* used if driver requires update in task context*/
 	void (*driver_cb)(struct io_uring_cmd *cmd);
-- 
2.25.1




More information about the Linux-nvme mailing list