io_uring: clean up ->files grabbing
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 10 Oct 2020 17:34:06 +0000 (18:34 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 10 Oct 2020 18:49:24 +0000 (12:49 -0600)
commit233295130e53c8dfe6dbef3f52634c3f7e44cd6a
treef1c1e4d5da4bbc24627b7f571e7776248fe698ba
parent5bf5e464f1acb1c031b4a290d63760bcb074c027
io_uring: clean up ->files grabbing

Move work.files grabbing into io_prep_async_work() to all other work
resources initialisation. We don't need to keep it separately now, as
->ring_fd/file are gone. It also allows to not grab it when a request
is not going to io-wq.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c