]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring: combine buffer lookup and import
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 24 Feb 2025 21:31:10 +0000 (13:31 -0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 27 Feb 2025 14:17:39 +0000 (07:17 -0700)
commit5d309914773370308eb98d1db664eb18f502c5a6
treea018a10d40b56dd0015a4db8957d25d42c683d11
parent69d483d5f43e7a525246090c80f978b827104ad4
io_uring: combine buffer lookup and import

Registered buffer are currently imported in two steps, first we lookup
a rsrc node and then use it to set up the iterator. The first part is
usually done at the prep stage, and import happens whenever it's needed.
As we want to defer binding to a node so that it works with linked
requests, combine both steps into a single helper.

Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250224213116.3509093-6-kbusch@meta.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c
io_uring/rsrc.c
io_uring/rsrc.h
io_uring/rw.c
io_uring/uring_cmd.c