io_uring: use io_req_local_work_add() in io_req_task_work_add_remote()
authorJens Axboe <axboe@kernel.dk>
Sun, 27 Jul 2025 14:14:46 +0000 (08:14 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 9 Aug 2025 14:38:27 +0000 (08:38 -0600)
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 <axboe@kernel.dk>
io_uring/io_uring.c

index afdb5de0707d8873ac65dc7d2209c616aed242b0..4569bbee9e88b1f0f4569f7a87a18bb65d5dfce0 100644 (file)
@@ -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)