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 14:49:17 +0000 (08:49 -0600)
commit69a515878fc00669b788d000f9f4a011cb161c0f
tree35a2647653abd8a5ba2890391c62558de8264f29
parent1f2bb8b5d88e9fa637e352e33d35d3df4ddce11c
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