From: Jens Axboe Date: Sun, 27 Jul 2025 14:14:46 +0000 (-0600) Subject: io_uring: use io_req_local_work_add() in io_req_task_work_add_remote() X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=d4e4929d9001b4edffac5e80fb05ec4feceba7a6;p=linux-block.git 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 --- 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)