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

commit 8731e2c63077ad15c631434d80f14cb4de2923f8 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