]> Gentwo Git Trees - linux/.git/commit
io_uring/zcrx: allow synchronous buffer return
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 16 Sep 2025 14:28:02 +0000 (15:28 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 16 Sep 2025 18:37:21 +0000 (12:37 -0600)
commit705d2ac7b2044f1ca05ba6033183151a04dbff4d
tree4007929a276acf327d8aa62a19efad3856a54bef
parent8fd08d8dda3c6c4e9f0b73acdcf8a1cf391b0c8f
io_uring/zcrx: allow synchronous buffer return

Returning buffers via a ring is performant and convenient, but it
becomes a problem when/if the user misconfigured the ring size and it
becomes full. Add a synchronous way to return buffers back to the page
pool via a new register opcode. It's supposed to be a reliable slow
path for refilling.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/uapi/linux/io_uring.h
io_uring/register.c
io_uring/zcrx.c
io_uring/zcrx.h