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>
Mon, 25 Jul 2022 00:39:14 +0000 (18:39 -0600)
commit68494a65d0e2de3d99b28ae050971b6161eabac0
tree994395a331ba9fd0d58c76bd7ee57aa72aeda3ad
parentfaf88dde060f74117b3a86a62cb32a20f27fd636
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