io_uring/rsrc: split io_kiocb node type assignments
authorJens Axboe <axboe@kernel.dk>
Sun, 3 Nov 2024 15:46:07 +0000 (08:46 -0700)
committerJens Axboe <axboe@kernel.dk>
Sun, 3 Nov 2024 17:43:41 +0000 (10:43 -0700)
commit0c81a9455e0f5b440bb29efcef35225841328a91
tree7f440e293f588b5c1d598568021ec83e2cef0473
parent020853e1546816a308067e6690d39b1a9c31a69d
io_uring/rsrc: split io_kiocb node type assignments

Currently the io_rsrc_node assignment in io_kiocb is an array of two
pointers, as two nodes may be assigned to a request - one file node,
and one buffer node. However, the buffer node can co-exist with the
provided buffers, as currently it's not supported to use both provided
and registered buffers at the same time.

This crucially brings struct io_kiocb down to 4 cache lines again, as
before it spilled into the 5th cacheline.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/io_uring_types.h
io_uring/io_uring.c
io_uring/net.c
io_uring/nop.c
io_uring/notif.c
io_uring/rsrc.h
io_uring/rw.c
io_uring/uring_cmd.c