]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
io_uring/net: reuse req->buf_index for sendzc
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 24 Feb 2025 21:31:08 +0000 (13:31 -0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 27 Feb 2025 14:17:39 +0000 (07:17 -0700)
commit81cc96fcb3dcfb3d85df4e0eec56149b5b53c016
tree9a3e742992008c2a4f528daac2ef2168543f2d3a
parenta14ca7a413ec8a9f9184c543691f890a011ed98a
io_uring/net: reuse req->buf_index for sendzc

There is already a field in io_kiocb that can store a registered buffer
index, use that instead of stashing the value into struct io_sr_msg.

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