]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Don't inadvertently clear writeback errors
authorTrond Myklebust <trondmy@gmail.com>
Sun, 7 Apr 2019 17:59:04 +0000 (13:59 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 25 Apr 2019 18:18:14 +0000 (14:18 -0400)
commit8de6aaf241c9b986c7950e88fced0773e52875fc
treeb1836af68dccf3bc8a4c7163c5503388b260666d
parent2b997354eba32a3c0652c58cc720cb90586a14f2
NFS: Don't inadvertently clear writeback errors

vfs_fsync() has the side effect of clearing unreported writeback errors,
so we need to make sure that we do not abuse it in situations where
applications might not normally expect us to report those errors.

The solution is to replace calls to vfs_fsync() with calls to nfs_wb_all().

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/file.c
fs/nfs/nfs4file.c