struct io_alloc_cache rw_cache; struct io_alloc_cache uring_cache; /* * Any cancelable uring_cmd is added to this list in3 changes: 3 additions & 0 deletions 3 io_uring/io_uring.c Original file line numberDiff line numberDiff line change ...
It's possible for a file type to support uring commands, but not pollable ones. Hence before issuing one of those, we should check that it is supported and error out upfront if it isn't. Cc: stable@vger.kernel.org Fixes: 5756a3a ("io_uring: add iopoll infrastructure for io_uring...
struct uring_cache { struct io_uring_sqe sqes[2]; }; int io_uring_cmd(struct io_kiocb *req, unsigned int issue_flags); int io_uring_cmd_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe); bool io_uring_try_cancel_uring_cmd(struct io_ring_ctx *ctx, struct task_struct...
Some io_uring commands can use some inline space in io_kiocb. We have 32 bytes in struct io_uring_cmd, expose it. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/7ca779a61ee5e166e535d70df9c7f07b15d8a0ce.1726072086.git.asml.silence@gmail.co...
* to pass the mask provided by the core io_uring code. */ void io_uring_cmd_done(struct io_uring_cmd *cmd, ssize_t ret, ssize_t res2, void io_uring_cmd_done(struct io_uring_cmd *cmd, ssize_t ret, u64 res2, unsigned issue_flags); void __io_uring_cmd_do_in_task(struct ...
ioucmd->cmd=req->async_data; return0; } Expand DownExpand Up@@ -129,9 +130,6 @@ int io_uring_cmd(struct io_kiocb *req, unsigned int issue_flags) WRITE_ONCE(ioucmd->cookie,NULL); } if(req_has_async_data(req)) ioucmd->cmd=req->async_data; ...
kdave closed this as completed by moving to Done in Kernel patches Nov 7, 2024 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Assignees No one assigned Labels for-next Projects Kernel patches Status: Done +2 more Milestone No mile...
enum io_uring_cmd_flags { IO_URING_F_COMPLETE_DEFER = 1, IO_URING_F_UNLOCKED = 2, /* the request is executed from poll, it should not be freed */ IO_URING_F_MULTISHOT = 4, /* executed by io-wq */ IO_URING_F_IOWQ = 8, /* int's last bit, sign checks are usually fast...
io_uring: Change res2 parameter type in io_uring_cmd_done Browse files Change the type of the res2 parameter in io_uring_cmd_done from ssize_t to u64. This aligns the parameter type with io_req_set_cqe32_extra, which expects u64 arguments. The change eliminates potential issues on...