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>
Wed, 23 Oct 2024 13:27:21 +0000 (07:27 -0600)
commit31ce5dd1fb48bce9db8fb51ab5828a1cecf07e07
treecf0c19d7890bf17d4b0cbc4edb256d61aee3c10a
parentb99f631df7f514ded9861c2c7c346a13b8cd9fff
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