]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 27 Apr 2022 09:59:45 +0000 (11:59 +0200)
commit9e3e1dc40ab5300faf3b169075c8568faed06497
treef7d18a2e688f2ef91237262b94db68b7c4dc5cbc
parentdfb4d3e6217b84446a102279810700377f50a332
io_uring: don't check req->file in io_fsync_prep()

BugLink: https://bugs.launchpad.net/bugs/1969107
commit ec858afda857e361182ceafc3d2ba2b164b8e889 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>
(cherry picked from commit 056e1e7c17136cea36267383a43d586509566931)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
fs/io_uring.c