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>
Tue, 29 Oct 2024 19:43:28 +0000 (13:43 -0600)
commitbe207e597f869e7f43ce2dd3a5465efb3f641ce8
tree17091a9a867a0d7fc3907ca1c41cfbe505eb2f17
parent6ad2757d6cbbf12cde55fc33517d0b8d89a9eccc
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