View | Details | Raw Unified | Return to bug 216086
Collapse All | Expand All

(-)fs/nfsclient/nfs_clstate.c (-9 / +5 lines)
Lines 1933-1942 nfscl_recover(struct nfsclclient *clp, s Link Here
1933
	     error == NFSERR_BADSESSION ||
1933
	     error == NFSERR_BADSESSION ||
1934
	     error == NFSERR_STALEDONTRECOVER) && --trycnt > 0);
1934
	     error == NFSERR_STALEDONTRECOVER) && --trycnt > 0);
1935
	if (error) {
1935
	if (error) {
1936
		nfscl_cleanclient(clp);
1936
printf("recov setcl failed=%d\n", error);
1937
		NFSLOCKCLSTATE();
1937
		NFSLOCKCLSTATE();
1938
		clp->nfsc_flags &= ~(NFSCLFLAGS_HASCLIENTID |
1938
		clp->nfsc_flags &= ~(NFSCLFLAGS_RECOVER |
1939
		    NFSCLFLAGS_RECOVER | NFSCLFLAGS_RECVRINPROG);
1939
		    NFSCLFLAGS_RECVRINPROG);
1940
		wakeup(&clp->nfsc_flags);
1940
		wakeup(&clp->nfsc_flags);
1941
		nfsv4_unlock(&clp->nfsc_lock, 0);
1941
		nfsv4_unlock(&clp->nfsc_lock, 0);
1942
		NFSUNLOCKCLSTATE();
1942
		NFSUNLOCKCLSTATE();
Lines 2253-2265 nfscl_hasexpired(struct nfsclclient *clp Link Here
2253
	     error == NFSERR_BADSESSION ||
2253
	     error == NFSERR_BADSESSION ||
2254
	     error == NFSERR_STALEDONTRECOVER) && --trycnt > 0);
2254
	     error == NFSERR_STALEDONTRECOVER) && --trycnt > 0);
2255
	if (error) {
2255
	if (error) {
2256
		/*
2256
printf("expire setcl failed=%d\n", error);
2257
		 * Clear out any state.
2258
		 */
2259
		nfscl_cleanclient(clp);
2260
		NFSLOCKCLSTATE();
2257
		NFSLOCKCLSTATE();
2261
		clp->nfsc_flags &= ~(NFSCLFLAGS_HASCLIENTID |
2258
		clp->nfsc_flags &= ~NFSCLFLAGS_RECOVER;
2262
		    NFSCLFLAGS_RECOVER);
2263
	} else {
2259
	} else {
2264
		/*
2260
		/*
2265
		 * Expire the state for the client.
2261
		 * Expire the state for the client.

Return to bug 216086