io_uring: only initialize io_kiocb rsrc_nodes when needed
authorJens Axboe <axboe@kernel.dk>
Sat, 26 Oct 2024 16:46:10 +0000 (10:46 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 28 Oct 2024 19:23:03 +0000 (13:23 -0600)
commitc700a68af3da787805207059405afb8366c1ed0f
treec75b397d23323913c440852c2dc1eeeb6cb5a5a5
parent7058bcb1362413c55b89b7b6d6a611f2575e2264
io_uring: only initialize io_kiocb rsrc_nodes when needed

Add the empty node initializing to the preinit part of the io_kiocb
allocation, and reset them if they have been used.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c
io_uring/rsrc.h