]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: don't check req->file in io_fsync_prep()
authorJens Axboe <axboe@kernel.dk>
Wed, 30 Mar 2022 17:06:02 +0000 (11:06 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Apr 2022 18:59:22 +0000 (20:59 +0200)
commit2fabfa6189b58b9fee5d2ba9506d07f004679c5c
tree956dd2e12d6ae2fe05f676bf51d0b4e3a61743eb
parentc5d75d15c696a3c2a9c4f6daa586984047287aea
io_uring: don't check req->file in io_fsync_prep()

commit d255b16c2b625e3d93319a372d49d6c91eaaaf7d upstream.

This is a leftover from the really old days where we weren't able to
track and error early if we need a file and it wasn't assigned. Kill
the check.

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