summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4_fs.h
diff options
context:
space:
mode:
authorOlga Kornievskaia <kolga@netapp.com>2019-10-08 22:34:36 +0200
committerOlga Kornievskaia <olga.kornievskaia@gmail.com>2019-10-09 18:05:56 +0200
commit0b9018b9cab9b6a30fd6758ff0745ff74efcf374 (patch)
tree700e0b52989eb63b38619c364de60c19373202bd /fs/nfs/nfs4_fs.h
parentNFS: inter ssc open (diff)
downloadlinux-0b9018b9cab9b6a30fd6758ff0745ff74efcf374.tar.xz
linux-0b9018b9cab9b6a30fd6758ff0745ff74efcf374.zip
NFS: skip recovery of copy open on dest server
Mark the open created for the source file on the destination server. Then if this open is going thru a recovery, then fail the recovery as we don't need to be recoving a "fake" open. We need to fail the ongoing READs and vfs_copy_file_range(). Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4_fs.h')
-rw-r--r--fs/nfs/nfs4_fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h
index 5f279425ee77..814674f073a1 100644
--- a/fs/nfs/nfs4_fs.h
+++ b/fs/nfs/nfs4_fs.h
@@ -168,6 +168,7 @@ enum {
NFS_STATE_CHANGE_WAIT, /* A state changing operation is outstanding */
#ifdef CONFIG_NFS_V4_2
NFS_CLNT_DST_SSC_COPY_STATE, /* dst server open state on client*/
+ NFS_SRV_SSC_COPY_STATE, /* ssc state on the dst server */
#endif /* CONFIG_NFS_V4_2 */
};