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>
Tue, 29 Mar 2022 22:26:33 +0000 (16:26 -0600)
commitc686f7a5cbe2eff3c9b41f225fb7cf9e163cde5c
tree2814dde1b194cc1c5419d23782a1a93f83aec29e
parent3f1d52abf098c85b177b8c6f5b310e8347d1bc42
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