io_uring: separate ring/file creation from descriptor install
authorJens Axboe <axboe@kernel.dk>
Thu, 3 Sep 2020 12:06:40 +0000 (06:06 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 5 Sep 2020 22:07:36 +0000 (16:07 -0600)
commit762b3726232897ca897eb7039a4639442860e4aa
tree7eea6c02aa1ba909bf038b32d5d88776e3217894
parent01c88257dc2a93106b31c2bfc6cec5e7840c87b8
io_uring: separate ring/file creation from descriptor install

As soon as the descriptor is installed, we could potentially have
someone close it. Separate the getting of the anon file and fd from
the descriptor installation, so we can use the fd before we finally
install it at the end.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c