io_uring: feed reqs back into alloc cache
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 10 Feb 2021 00:03:18 +0000 (00:03 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Feb 2021 14:28:43 +0000 (07:28 -0700)
commit6ff119a6e4c3fe900e75e6667930dc086f185f2b
tree8be5484f7b20fb5c3655c297abea4db529bcf1bf
parentbf019da7fcbe7e42372582cc339fd1fb8e1e4fa5
io_uring: feed reqs back into alloc cache

Make io_req_free_batch(), which is used for inline executed requests and
IOPOLL, to return requests back into the allocation cache, so avoid
most of kmalloc()/kfree() for those cases.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c