]> www.infradead.org Git - users/hch/block.git/commit
net: add accept helper not installing fd
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 21 Aug 2021 15:52:37 +0000 (16:52 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 23 Aug 2021 19:41:56 +0000 (13:41 -0600)
commitba3ec4df1a9eecf1dc9676588267d18e93f37c80
treefbdb642ca406337a0fecd472c2d14ab2bcb64355
parentdadebc350da2bef62593b1df007a6e0b90baf42a
net: add accept helper not installing fd

Introduce and reuse a helper that acts similarly to __sys_accept4_file()
but returns struct file instead of installing file descriptor. Will be
used by io_uring.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/0c5d77e34ebff09f1f2f6b9bff15b97ec8fbf8ca.1629559905.git.asml.silence@gmail.com
Acked-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/socket.h
net/socket.c