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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Apr 2022 18:59:22 +0000 (20:59 +0200)
commitae6cba337cbfda855b028f1e6ae83c22de4f5212
tree9692b4f1c86cfd8f7e2c6d57e1df285f7b3bcc44
parent056e1e7c17136cea36267383a43d586509566931
io_uring: defer splice/tee file validity check until command issue

commit a3e4bc23d5470b2beb7cc42a86b6a3e75b704c15 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/io_uring.c