]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit04a309af1722c570ed67c74a61d1687630647c76
tree8be5484f7b20fb5c3655c297abea4db529bcf1bf
parentd49fd3c50eaeff07bf4ea6d74014a48c49e4589c
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