]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: defer splice/tee file validity check until command issue
authorJens Axboe <axboe@kernel.dk>
Tue, 29 Mar 2022 16:59:20 +0000 (10:59 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 4 Apr 2022 22:50:20 +0000 (16:50 -0600)
commite8884d3198db141f302a2465bb779d645cb06840
treec50aec5ba8be060b83b7f0b38cb56596347bde2b
parent5021178fef0d0c998954ff3113072d541a3d34fc
io_uring: defer splice/tee file validity check until command issue

In preparation for not using the file at prep time, defer checking if this
file refers to a valid io_uring instance until issue time.

This also means we can get rid of the cleanup flag for splice and tee.

Cc: stable@vger.kernel.org # v5.15+
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c