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, 9 Aug 2021 19:47:12 +0000 (13:47 -0600)
commitd2e504bb47954f8ab45b3dc282e7cd4a80e0c457
tree4825c09fd249d2252cec9855bce3e7a3f80c073e
parent57a05b6f5c242cae8c9803b5fc525a9d6ff452bb
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