diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index 77e26b037fdd..a0073625ff16 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -972,7 +972,7 @@ void io_req_complete_post(struct io_kiocb *req, unsigned issue_flags) { struct io_ring_ctx *ctx = req->ctx; - if (ctx->task_complete && ctx->submitter_task != current) { + if (ctx->task_complete) { req->io_task_work.func = io_req_task_complete; io_req_task_work_add(req); } else if (!(issue_flags & IO_URING_F_UNLOCKED) ||