io_uring: introduce io_req_cqe_overflow()
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 17 Jun 2022 08:48:02 +0000 (09:48 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Jul 2022 14:44:16 +0000 (08:44 -0600)
commit16a6ac0df82ad4916e2a424101b72ae6bc81ac8d
tree869bbd7e1bc1c5fc3a41e371b7da725e173c45a1
parent53c0172a17c3c2307bd03cd34c88a2ae780adfb2
io_uring: introduce io_req_cqe_overflow()

__io_fill_cqe_req() is hot and inlined, we want it to be as small as
possible. Add io_req_cqe_overflow() accepting only a request and doing
all overflow accounting, and replace with it two calls to 6 argument
io_cqring_event_overflow().

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/048b9fbcce56814d77a1a540409c98c3d383edcb.1655455613.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c
io_uring/io_uring.h