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>
Fri, 17 Jun 2022 14:25:42 +0000 (08:25 -0600)
commit90cea566d29b612b6b74d809e0e10e4dca613680
treeabe9e5420a9a127cbedca176fd42b7afd26eef66
parent5909f26a02c005432fd5cde3f0ca86d048cb7532
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