]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Apr 2022 18:03:20 +0000 (20:03 +0200)
commite767b3a3a4c47c025879fa92343f6cc121af5e6d
tree2b2a1ec8437c855370b7f59ecbfd47d7ddc7c06b
parentd63bd1bad8ed2dbd4d22931de677b3dfccec0f8c
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