]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
io_uring/net: Avoid msghdr on op_connect/op_bind async data
authorGabriel Krisman Bertazi <krisman@suse.de>
Tue, 2 Jun 2026 21:53:24 +0000 (17:53 -0400)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Jun 2026 23:43:06 +0000 (17:43 -0600)
commit3979840cd858f30f43ea9f4e7f7f1f56de82d698
tree69c3620c5ceb5b4b8c6cdd0685c879a4f4d44e5a
parentec02fe217fa66d79f8a65e8d28be9295c7f85093
io_uring/net: Avoid msghdr on op_connect/op_bind async data

Both IORING_OP_CONNECT and IORING_OP_BIND reuse the msghdr object just
to store the sockaddr. Beyond allocating a much larger object than
needed, msghdr can also wrap an iovec, which will be recycled
unnecessarily. This uses the sockaddr directly.

Signed-off-by: Gabriel Krisman Bertazi <krisman@suse.de>
Link: https://patch.msgid.link/20260602215327.1885109-2-krisman@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c
io_uring/opdef.c