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>
Wed, 6 Nov 2024 20:55:36 +0000 (13:55 -0700)
commit6f94cbc29adacc15007c5a16295052e674099282
treee7cd3fa78367dedba9c456a43e871af6a7250dca
parent6af82f7614a2e31e7ef23e5e160697aef31e8edd
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