io_uring/net: refactor io_setup_async_addr
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 21 Sep 2022 11:17:50 +0000 (12:17 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 21 Sep 2022 19:15:02 +0000 (13:15 -0600)
commit6ae61b7aa2c758ce07347ebfa9c79b6f208098d5
tree391404b215bf20c6ad86275d9a0f782b9a6e82d1
parent5693bcce892d7b8b15a7a92b011d3d40a023b53c
io_uring/net: refactor io_setup_async_addr

Instead of passing the right address into io_setup_async_addr() only
specify local on-stack storage and let the function infer where to grab
it from. It optimises out one local variable we have to deal with.

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