diff options
Diffstat (limited to 'io_uring')
-rw-r--r-- | io_uring/poll.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/io_uring/poll.c b/io_uring/poll.c index 58e02d963961..8fb8e781c02d 100644 --- a/io_uring/poll.c +++ b/io_uring/poll.c @@ -324,12 +324,7 @@ static void io_apoll_task_func(struct io_kiocb *req, bool *locked) static void __io_poll_execute(struct io_kiocb *req, int mask) { io_req_set_res(req, mask, 0); - /* - * This is useful for poll that is armed on behalf of another - * request, and where the wakeup path could be on a different - * CPU. We want to avoid pulling in req->apoll->events for that - * case. - */ + if (req->opcode == IORING_OP_POLL_ADD) req->io_task_work.func = io_poll_task_func; else |