]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit575b5c447f496b6fc6559f6e0a74d3aabad2c621
tree5bbcf70bd31c60b87a35e87392d5ab57170c814c
parentc7519348c09ae9fb8fb6ed624f4f4ad712d3de58
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