io_uring: cache __io_free_req()'d requests
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 9 Aug 2021 19:18:08 +0000 (20:18 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 23 Aug 2021 19:09:43 +0000 (13:09 -0600)
commitc34b025f2d2149d4351b994a923fa687a32478f8
treedd1c14cc5d6e8cea6a1888ce773dfcf074581a54
parentf56165e62fae78200292857628e4f1d8d12a0ed0
io_uring: cache __io_free_req()'d requests

Don't kfree requests in __io_free_req() but put them back into the
internal request cache. That makes allocations more sustainable and will
be used for refcounting optimisations.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/9f4950fbe7771c8d41799366d0a3a08ac3040236.1628536684.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c