]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring/net: don't store send address ptr
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 22 Oct 2024 14:43:13 +0000 (15:43 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 29 Oct 2024 19:43:27 +0000 (13:43 -0600)
commitad438d070a3bf2a3ae45b59a885a5d7b0dbbc465
tree8a7ff56197779b32450444020de39dbb43179825
parent93db98f6f1d62c9e58787f6beb62245ddb91f354
io_uring/net: don't store send address ptr

For non "msg" requests we copy the address at the prep stage and there
is no need to store the address user pointer long term. Pass the SQE
into io_send_setup(), let it parse it, and remove struct io_sr_msg addr
addr_len fields. It saves some space and also less confusing.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/db3dce544e17ca9d4b17d2506fbbac1da8a87824.1729607201.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c