diff options
| -rw-r--r-- | fs/nfs/nfs4state.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c index 9164758c1ace..2931c46c4127 100644 --- a/fs/nfs/nfs4state.c +++ b/fs/nfs/nfs4state.c | |||
| @@ -1291,17 +1291,17 @@ static int nfs4_reset_session(struct nfs_client *clp) | |||
| 1291 | 1291 | ||
| 1292 | memset(clp->cl_session->sess_id.data, 0, NFS4_MAX_SESSIONID_LEN); | 1292 | memset(clp->cl_session->sess_id.data, 0, NFS4_MAX_SESSIONID_LEN); |
| 1293 | status = nfs4_proc_create_session(clp); | 1293 | status = nfs4_proc_create_session(clp); |
| 1294 | if (status) | 1294 | if (status) { |
| 1295 | status = nfs4_recovery_handle_error(clp, status); | 1295 | status = nfs4_recovery_handle_error(clp, status); |
| 1296 | goto out; | ||
| 1297 | } | ||
| 1298 | /* create_session negotiated new slot table */ | ||
| 1299 | clear_bit(NFS4CLNT_RECALL_SLOT, &clp->cl_state); | ||
| 1296 | 1300 | ||
| 1297 | out: | 1301 | /* Let the state manager reestablish state */ |
| 1298 | /* | 1302 | if (!test_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state)) |
| 1299 | * Let the state manager reestablish state | ||
| 1300 | */ | ||
| 1301 | if (!test_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state) && | ||
| 1302 | status == 0) | ||
| 1303 | nfs41_setup_state_renewal(clp); | 1303 | nfs41_setup_state_renewal(clp); |
| 1304 | 1304 | out: | |
| 1305 | return status; | 1305 | return status; |
| 1306 | } | 1306 | } |
| 1307 | 1307 | ||
