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)
commita3e4bc23d5470b2beb7cc42a86b6a3e75b704c15
treec50aec5ba8be060b83b7f0b38cb56596347bde2b
parentec858afda857e361182ceafc3d2ba2b164b8e889
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