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>
Tue, 10 Aug 2021 23:51:41 +0000 (17:51 -0600)
commita8b225274797367c8e7007cc4066ac7db55e0c60
treeb89609a58e7f42d854297bb05a12111d0f8d0751
parent180686a79a71662473bdd99dda5156d7c0ea706f
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