]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring/kbuf: unify legacy buf provision and removal
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 13 May 2025 17:26:51 +0000 (18:26 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 13 May 2025 20:45:55 +0000 (14:45 -0600)
commit2b61bb1d9aa601ec393054a61be0a707a5bea928
tree2327a0b9b0d46e1855ab29b8d9ee1c92192cabb7
parentc724e801239ffc3714afe65cf6e721ddd04199d0
io_uring/kbuf: unify legacy buf provision and removal

Combine IORING_OP_PROVIDE_BUFFERS and IORING_OP_REMOVE_BUFFERS
->issue(), so that we can deduplicate ring locking and list lookups.
This way we further reduce code for legacy provided buffers. Locking is
also separated from buffer related handling, which makes it a bit
simpler with label jumps.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/f61af131622ad4337c2fb9f7c453d5b0102c7b90.1747150490.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/kbuf.c
io_uring/kbuf.h
io_uring/opdef.c