projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3347fa6
)
io_uring: add io_uring_cmd_get_async_data helper
author
Mark Harmstone
<maharmstone@fb.com>
Fri, 3 Jan 2025 15:02:25 +0000
(15:02 +0000)
committer
David Sterba
<dsterba@suse.com>
Mon, 6 Jan 2025 12:51:08 +0000
(13:51 +0100)
Add a helper function in include/linux/io_uring/cmd.h to read the
async_data pointer from a struct io_uring_cmd.
Signed-off-by: Mark Harmstone <maharmstone@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
include/linux/io_uring/cmd.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/io_uring/cmd.h
b/include/linux/io_uring/cmd.h
index 3df6636ec3a32e752acac810285be4b9612470c4..b0aeec834c1db5b50d34a7c3df651de810c003f0 100644
(file)
--- a/
include/linux/io_uring/cmd.h
+++ b/
include/linux/io_uring/cmd.h
@@
-118,4
+118,9
@@
static inline struct task_struct *io_uring_cmd_get_task(struct io_uring_cmd *cmd
return cmd_to_io_kiocb(cmd)->task;
}
+static inline struct io_uring_cmd_data *io_uring_cmd_get_async_data(struct io_uring_cmd *cmd)
+{
+ return cmd_to_io_kiocb(cmd)->async_data;
+}
+
#endif /* _LINUX_IO_URING_CMD_H */