diff options
author | Trond Myklebust <trondmy@gmail.com> | 2020-01-06 23:25:03 +0300 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2020-01-15 18:54:32 +0300 |
commit | 2197e9b06c228b65a2cef98ef34d6bf42fa1af3d (patch) | |
tree | 1d36b340780c97d478d987105a684d7c69e33c7e /fs/nfs/pnfs_nfs.c | |
parent | b32d285539e061dc3961e86f825d4ded5ba6de14 (diff) | |
download | linux-2197e9b06c228b65a2cef98ef34d6bf42fa1af3d.tar.xz |
NFS: Fix up fsync() when the server rebooted
Don't clear the NFS_CONTEXT_RESEND_WRITES flag until after calling
nfs_commit_inode(). Otherwise, if nfs_commit_inode() returns an
error, we end up with dirty pages in the page cache, but no tag
to tell us that those pages need resending.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/pnfs_nfs.c')
0 files changed, 0 insertions, 0 deletions