We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b1dfd3 commit 0ec6dcaCopy full SHA for 0ec6dca
io_uring/poll.c
@@ -234,12 +234,8 @@ static void io_poll_task_func(struct io_kiocb *req, bool *locked)
234
235
io_poll_remove_entries(req);
236
io_poll_req_delete(req, ctx);
237
- spin_lock(&ctx->completion_lock);
238
- req->cqe.flags = 0;
239
- __io_req_complete_post(req);
240
- io_commit_cqring(ctx);
241
- spin_unlock(&ctx->completion_lock);
242
- io_cqring_ev_posted(ctx);
+ io_req_set_res(req, req->cqe.res, 0);
+ io_req_task_complete(req, locked);
243
}
244
245
static void io_apoll_task_func(struct io_kiocb *req, bool *locked)
0 commit comments