io_uring: accept directly into fixed file table
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 25 Aug 2021 11:25:47 +0000 (12:25 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 25 Aug 2021 12:36:56 +0000 (06:36 -0600)
commitaaa4db12ef7bdc3e343580d1d3c0b2a8874fc1fb
treeaeb9649085109bd1637398e46548fea5612b8c45
parenta7083ad5e30767ede4ff49d7471ea9c078702db2
io_uring: accept directly into fixed file table

As done with open opcodes, allow accept to skip installing fd into
processes' file tables and put it directly into io_uring's fixed file
table. Same restrictions and design as for open.

Suggested-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Link: https://lore.kernel.org/r/6d16163f376fac7ac26a656de6b42199143e9721.1629888991.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c