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>
{
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)