summaryrefslogtreecommitdiff
path: root/fs/nfsd/xdr4.h
diff options
context:
space:
mode:
authorOlga Kornievskaia <kolga@netapp.com>2021-05-19 21:48:27 +0300
committerJ. Bruce Fields <bfields@redhat.com>2021-05-26 00:06:51 +0300
commiteac0b17a77fbd763d305a5eaa4fd1119e5a0fe0d (patch)
tree8d4564e8689e153884abd2a0afb3a08fc271659f /fs/nfsd/xdr4.h
parenteeeadbb9bd5652c47bb9b31aa9ad8b4f1b4aa8b3 (diff)
downloadlinux-eac0b17a77fbd763d305a5eaa4fd1119e5a0fe0d.tar.xz
NFSD add vfs_fsync after async copy is done
Currently, the server does all copies as NFS_UNSTABLE. For synchronous copies linux client will append a COMMIT to the COPY compound but for async copies it does not (because COMMIT needs to be done after all bytes are copied and not as a reply to the COPY operation). However, in order to save the client doing a COMMIT as a separate rpc, the server can reply back with NFS_FILE_SYNC copy. This patch proposed to add vfs_fsync() call at the end of the async copy. Signed-off-by: Olga Kornievskaia <kolga@netapp.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/xdr4.h')
-rw-r--r--fs/nfsd/xdr4.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/xdr4.h b/fs/nfsd/xdr4.h
index a7c425254fee..3e4052e3bd50 100644
--- a/fs/nfsd/xdr4.h
+++ b/fs/nfsd/xdr4.h
@@ -567,6 +567,7 @@ struct nfsd4_copy {
struct vfsmount *ss_mnt;
struct nfs_fh c_fh;
nfs4_stateid stateid;
+ bool committed;
};
struct nfsd4_seek {