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>
Mon, 25 Jul 2022 00:39:13 +0000 (18:39 -0600)
commit0ec6dca223195aca2f7df6e432c4205b5f63305b
tree5bbcf70bd31c60b87a35e87392d5ab57170c814c
parent8b1dfd343ae6a64ca2b4741ab47a162fa59f43be
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