io_uring/rsrc: consolidate node caching
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 11 Apr 2023 11:06:05 +0000 (12:06 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 12 Apr 2023 18:09:41 +0000 (12:09 -0600)
commit528407b1e0ea51260fff2cc8b669c632a65d7a09
treefc71826287bad3c13e9e8408582f5113d331535f
parent786788a8cfe03056e9c7b1c6e418c1db92a0ce80
io_uring/rsrc: consolidate node caching

We store one pre-allocated rsrc node in ->rsrc_backup_node, merge it
with ->rsrc_node_cache.

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