io_uring: refactor req allocation
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 23 Jan 2023 14:37:16 +0000 (14:37 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 29 Jan 2023 22:17:41 +0000 (15:17 -0700)
commitc8576f3e612d3c5b01d434ae296b9b76d7907708
treee920d94aea33013acfab94c19eb47f591c409d5d
parentb5083dfa36676e7b5d72bf3d70f429a0d08c5075
io_uring: refactor req allocation

Follow the io_get_sqe pattern returning the result via a pointer
and hide request cache refill inside io_alloc_req().

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