io_uring: use state completion infra for poll reqs
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 16 Jun 2022 09:22:07 +0000 (10:22 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Jul 2022 14:44:11 +0000 (08:44 -0600)
commit389a427d10fc3ea0014e45ff06e6d84f8add625a
tree2aace1b59faf61fff92467760b854b420caada24
parent9b9a0c5ada24b10d1aa98b882408c0b62b193c44
io_uring: use state completion infra for poll reqs

Use io_req_task_complete() for poll request completions, so it can
utilise state completions and save lots of unnecessary locking.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/ced94cb5a728d8e386c640d052fd3da3f5d6891a.1655371007.git.asml.silence@gmail.com
Reviewed-by: Hao Xu <howeyxu@tencent.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/poll.c