From d4e4929d9001b4edffac5e80fb05ec4feceba7a6 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Sun, 27 Jul 2025 08:14:46 -0600 Subject: [PATCH] io_uring: use io_req_local_work_add() in io_req_task_work_add_remote() This helper only supports rings setup with DEFER_TASKRUN anyway, hence it's pointless to call the generic task_work add handler as it's known it will be using the local variant anyway. Signed-off-by: Jens Axboe --- io_uring/io_uring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index afdb5de0707d..4569bbee9e88 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -1325,7 +1325,7 @@ void io_req_task_work_add_remote(struct io_kiocb *req, unsigned flags) { if (WARN_ON_ONCE(!(req->ctx->flags & IORING_SETUP_DEFER_TASKRUN))) return; - __io_req_task_work_add(req, flags); + io_req_local_work_add(req, flags); } static void __cold io_move_task_work_from_local(struct io_ring_ctx *ctx) -- 2.25.1