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>
Wed, 22 Jun 2022 17:32:29 +0000 (11:32 -0600)
commit9509ecc7774bc061d7c23e1ed877a71bf613ad8d
tree8cd76cd21fd1859b6b3ffc723153953d67596ff9
parent534f71a015b77e81d43f96130a532455cd656a0f
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