]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring/rsrc: allow cloning at an offset
authorJens Axboe <axboe@kernel.dk>
Tue, 29 Oct 2024 00:43:13 +0000 (18:43 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 2 Nov 2024 21:45:30 +0000 (15:45 -0600)
commitb16e920a1909da6799c43000db730d8fcdcae907
treef7e2dd08aa3ba7502b82a9ee70fe4c27a0d2920f
parentd50f94d761a5d9a34e03a86e512e19d88cbeaf06
io_uring/rsrc: allow cloning at an offset

Right now buffer cloning is an all-or-nothing kind of thing - either the
whole table is cloned from a source to a destination ring, or nothing at
all.

However, it's not always desired to clone the whole thing. Allow for
the application to specify a source and destination offset, and a
number of buffers to clone. If the destination offset is non-zero, then
allocate sparse nodes upfront.

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