io_uring/rsrc: cache struct io_rsrc_node
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 4 Apr 2023 12:39:54 +0000 (13:39 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 4 Apr 2023 15:30:39 +0000 (09:30 -0600)
commit9eae8655f9cd2eeed99fb7a0d2bb22816c17e497
tree9839eb9739e972da6b62d363843f1fa95e48ea4b
parent36b9818a5a84cb7c977fb723babca1c8d74f288f
io_uring/rsrc: cache struct io_rsrc_node

Add allocation cache for struct io_rsrc_node, it's always allocated and
put under ->uring_lock, so it doesn't need any extra synchronisation
around caches.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/252a9d9ef9654e6467af30fdc02f57c0118fb76e.1680576071.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/io_uring_types.h
io_uring/io_uring.c
io_uring/rsrc.c
io_uring/rsrc.h