aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-05-27 14:46:46 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-05-27 14:50:44 -0400
commitf2c1b5100db340441963649fabb4e43e2a65df77 (patch)
treea570ec8b25316c2c0d3b9113ba6192cdc630f6ed /fs/nfs
parent9f594791dd530c2dc06953fb32505a26cc28371f (diff)
NFSv4.1: nfs4_reset_session should use nfs4_handle_reclaim_lease_error
The results from a call to nfs4_proc_create_session() should always be fed into nfs4_handle_reclaim_lease_error, so that we can handle errors such as NFS4ERR_SEQ_MISORDERED correctly. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/nfs4state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c
index d46a905b07ae..dfedde6f2a71 100644
--- a/fs/nfs/nfs4state.c
+++ b/fs/nfs/nfs4state.c
@@ -1740,7 +1740,7 @@ static int nfs4_reset_session(struct nfs_client *clp)
1740 memset(clp->cl_session->sess_id.data, 0, NFS4_MAX_SESSIONID_LEN); 1740 memset(clp->cl_session->sess_id.data, 0, NFS4_MAX_SESSIONID_LEN);
1741 status = nfs4_proc_create_session(clp, cred); 1741 status = nfs4_proc_create_session(clp, cred);
1742 if (status) { 1742 if (status) {
1743 status = nfs4_recovery_handle_error(clp, status); 1743 status = nfs4_handle_reclaim_lease_error(clp, status);
1744 goto out; 1744 goto out;
1745 } 1745 }
1746 clear_bit(NFS4CLNT_SESSION_RESET, &clp->cl_state); 1746 clear_bit(NFS4CLNT_SESSION_RESET, &clp->cl_state);