Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2c1b510 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

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: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 9f594791
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1740,7 +1740,7 @@ static int nfs4_reset_session(struct nfs_client *clp)
	memset(clp->cl_session->sess_id.data, 0, NFS4_MAX_SESSIONID_LEN);
	memset(clp->cl_session->sess_id.data, 0, NFS4_MAX_SESSIONID_LEN);
	status = nfs4_proc_create_session(clp, cred);
	status = nfs4_proc_create_session(clp, cred);
	if (status) {
	if (status) {
		status = nfs4_recovery_handle_error(clp, status);
		status = nfs4_handle_reclaim_lease_error(clp, status);
		goto out;
		goto out;
	}
	}
	clear_bit(NFS4CLNT_SESSION_RESET, &clp->cl_state);
	clear_bit(NFS4CLNT_SESSION_RESET, &clp->cl_state);