In preparation to calling it from the clone command, expose this helper in io_uring.h. Signed-off-by: Gabriel Krisman Bertazi <krisman@xxxxxxx> --- io_uring/io_uring.c | 6 ------ io_uring/io_uring.h | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index 57d8947ae69e..a19f72755eaa 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -224,12 +224,6 @@ bool io_match_task_safe(struct io_kiocb *head, struct io_uring_task *tctx, return matched; } -static inline void req_fail_link_node(struct io_kiocb *req, int res) -{ - req_set_fail(req); - io_req_set_res(req, res, 0); -} - static inline void io_req_add_to_cache(struct io_kiocb *req, struct io_ring_ctx *ctx) { wq_stack_add_head(&req->comp_list, &ctx->submit_state.free_list); diff --git a/io_uring/io_uring.h b/io_uring/io_uring.h index 12abee607e4a..4dd051d29cb0 100644 --- a/io_uring/io_uring.h +++ b/io_uring/io_uring.h @@ -222,6 +222,12 @@ static inline void io_req_set_res(struct io_kiocb *req, s32 res, u32 cflags) req->cqe.flags = cflags; } +static inline void req_fail_link_node(struct io_kiocb *req, int res) +{ + req_set_fail(req); + io_req_set_res(req, res, 0); +} + static inline bool req_has_async_data(struct io_kiocb *req) { return req->flags & REQ_F_ASYNC_DATA; -- 2.47.0