]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6cf48efa2c8fdd49b8f541c1eca0a8f8e25783ff
treef1c1e4d5da4bbc24627b7f571e7776248fe698ba
parentcd9e874860165544d34396d83773dd27bbc34426
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