]> git.baikalelectronics.ru Git - 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)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 17 May 2022 16:01:59 +0000 (12:01 -0400)
commit9f1e8e066da539ac7d78bc80d71d53e3c4b8072d
treedcec41d4199dad29c034eb83619787d8800d0496
parent3464802a5da5a4a00921d829651d9e334dbbfc46
NFS: fsync() should report filesystem errors over EINTR/ERESTARTSYS

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: e222deaf205e ("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>
fs/nfs/file.c