]> www.infradead.org Git - users/hch/block.git/commit
net: Split a __sys_bind helper for io_uring
authorGabriel Krisman Bertazi <krisman@suse.de>
Fri, 14 Jun 2024 16:30:44 +0000 (12:30 -0400)
committerJens Axboe <axboe@kernel.dk>
Wed, 19 Jun 2024 13:57:20 +0000 (07:57 -0600)
commitdc2e77979412d289df9049d8c693761db8602867
tree0a99e77cbd381c1d6ea129619d6aadbf8df69695
parent3b87184f7eff27fef7d7ee18b65f173152e1bb81
net: Split a __sys_bind helper for io_uring

io_uring holds a reference to the file and maintains a
sockaddr_storage address.  Similarly to what was done to
__sys_connect_file, split an internal helper for __sys_bind in
preparation to supporting an io_uring bind command.

Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Gabriel Krisman Bertazi <krisman@suse.de>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20240614163047.31581-1-krisman@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/socket.h
net/socket.c