io_uring: carve io_poll_check_events fast path
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 30 Nov 2022 15:21:52 +0000 (15:21 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Nov 2022 17:26:57 +0000 (10:26 -0700)
commit9805fa2d94993e16efd0e1adbd2b54d8d1fe2f9f
tree880afb7c19c4898443ce7cad847df4a63d797133
parentf6f7f903e78dddcb1e1552b896e0e3e9c14c17ae
io_uring: carve io_poll_check_events fast path

The fast path in io_poll_check_events() is when we have only one
(i.e. master) reference. Move all verification, cancellations
checks, edge case handling and so on under a common if.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/8c21c5d5e027e32dc553705e88796dec79ff6f93.1669821213.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/poll.c