]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
NFS: fsync() should report filesystem errors over EINTR/ERESTARTSYS
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 14 May 2022 14:27:01 +0000 (10:27 -0400)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 10 Aug 2022 07:25:01 +0000 (09:25 +0200)
commit48a673379873e2c41d5cabe236cacfb71f1d19b9
tree6619a52b6124075d6f5c9d259f22413febde31fe
parente4a9bedbf2e5c1a7cbac07e4fa1d3c03d40d7945
NFS: fsync() should report filesystem errors over EINTR/ERESTARTSYS

BugLink: https://bugs.launchpad.net/bugs/1981864
[ Upstream commit 9641d9bc9b75f11f70646f5c6ee9f5f519a1012e ]

If the commit to disk is interrupted, we should still first check for
filesystem errors so that we can report them in preference to the error
due to the signal.

Fixes: 2197e9b06c22 ("NFS: Fix up fsync() when the server rebooted")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
fs/nfs/file.c