diff options
Diffstat (limited to 'fs/nfs/client.c')
-rw-r--r-- | fs/nfs/client.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c index f1506f148521..a9828baaa445 100644 --- a/fs/nfs/client.c +++ b/fs/nfs/client.c | |||
@@ -194,6 +194,8 @@ static void nfs4_clear_client_minor_version(struct nfs_client *clp) | |||
194 | nfs4_destroy_session(clp->cl_session); | 194 | nfs4_destroy_session(clp->cl_session); |
195 | clp->cl_session = NULL; | 195 | clp->cl_session = NULL; |
196 | } | 196 | } |
197 | |||
198 | clp->cl_call_sync = _nfs4_call_sync; | ||
197 | #endif /* CONFIG_NFS_V4_1 */ | 199 | #endif /* CONFIG_NFS_V4_1 */ |
198 | } | 200 | } |
199 | 201 | ||
@@ -1073,6 +1075,8 @@ error: | |||
1073 | */ | 1075 | */ |
1074 | static int nfs4_init_client_minor_version(struct nfs_client *clp) | 1076 | static int nfs4_init_client_minor_version(struct nfs_client *clp) |
1075 | { | 1077 | { |
1078 | clp->cl_call_sync = _nfs4_call_sync; | ||
1079 | |||
1076 | #if defined(CONFIG_NFS_V4_1) | 1080 | #if defined(CONFIG_NFS_V4_1) |
1077 | if (clp->cl_minorversion) { | 1081 | if (clp->cl_minorversion) { |
1078 | struct nfs4_session *session = NULL; | 1082 | struct nfs4_session *session = NULL; |
@@ -1086,6 +1090,7 @@ static int nfs4_init_client_minor_version(struct nfs_client *clp) | |||
1086 | return -ENOMEM; | 1090 | return -ENOMEM; |
1087 | 1091 | ||
1088 | clp->cl_session = session; | 1092 | clp->cl_session = session; |
1093 | clp->cl_call_sync = _nfs4_call_sync_session; | ||
1089 | } | 1094 | } |
1090 | #endif /* CONFIG_NFS_V4_1 */ | 1095 | #endif /* CONFIG_NFS_V4_1 */ |
1091 | 1096 | ||