io_uring: use state completion infra for poll reqs 5.15-stable
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 27 Jan 2023 17:01:56 +0000 (10:01 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 27 Jan 2023 17:05:17 +0000 (10:05 -0700)
commit181ecf2267b3559b91ae2370853d432f47921e1f
tree60653302f9b8c9ac001432d26650f6e4ff21c012
parentb408febf371c300a2d6129512f84b3e2e4cfd7c8
io_uring: use state completion infra for poll reqs

commit 0ec6dca223195aca2f7df6e432c4205b5f63305b upstream.

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/io_uring.c