View | Details | Raw Unified | Return to bug 260011 | Differences between
and this patch

Collapse All | Expand All

(-)sys/fs/nfsclient/nfs_clstate.c (-2 / +1 lines)
Lines 2765-2772 nfscl_renewthread(struct nfsclclient *clp, NFSPROC_T * Link Here
2765
			error = nfsrpc_renew(clp, NULL, cred, p);
2765
			error = nfsrpc_renew(clp, NULL, cred, p);
2766
			if (error == NFSERR_CBPATHDOWN)
2766
			if (error == NFSERR_CBPATHDOWN)
2767
			    cbpathdown = 1;
2767
			    cbpathdown = 1;
2768
			else if (error == NFSERR_STALECLIENTID ||
2768
			else if (error == NFSERR_STALECLIENTID) {
2769
			    error == NFSERR_BADSESSION) {
2770
			    NFSLOCKCLSTATE();
2769
			    NFSLOCKCLSTATE();
2771
			    clp->nfsc_flags |= NFSCLFLAGS_RECOVER;
2770
			    clp->nfsc_flags |= NFSCLFLAGS_RECOVER;
2772
			    NFSUNLOCKCLSTATE();
2771
			    NFSUNLOCKCLSTATE();
(-)sys/fs/nfsclient/nfs_clrpcops.c (-2 / +6 lines)
Lines 1062-1069 nfsrpc_setclient(struct nfsmount *nmp, struct nfsclcli Link Here
1062
			 * in-progress RPCs.
1062
			 * in-progress RPCs.
1063
			 */
1063
			 */
1064
			tsep = NULL;
1064
			tsep = NULL;
1065
			if (TAILQ_FIRST(&nmp->nm_sess) != NULL)
1065
			if (TAILQ_FIRST(&nmp->nm_sess) != NULL) {
1066
				tsep = NFSMNT_MDSSESSION(nmp);
1066
				tsep = NFSMNT_MDSSESSION(nmp);
1067
				if (tsep->nfsess_defunct == 0)
1068
					printf("nfsrpc_setclient: "
1069
					    "nfsess_defunct not set\n");
1070
			}
1067
			TAILQ_INSERT_HEAD(&nmp->nm_sess, dsp,
1071
			TAILQ_INSERT_HEAD(&nmp->nm_sess, dsp,
1068
			    nfsclds_list);
1072
			    nfsclds_list);
1069
			/*
1073
			/*
Lines 8355-8361 nfsrpc_createlayout(vnode_t dvp, char *name, int namel Link Here
8355
	}
8359
	}
8356
	if (nd->nd_repstat != 0 && error == 0)
8360
	if (nd->nd_repstat != 0 && error == 0)
8357
		error = nd->nd_repstat;
8361
		error = nd->nd_repstat;
8358
	if (error == NFSERR_STALECLIENTID || error == NFSERR_BADSESSION)
8362
	if (error == NFSERR_STALECLIENTID)
8359
		nfscl_initiate_recovery(owp->nfsow_clp);
8363
		nfscl_initiate_recovery(owp->nfsow_clp);
8360
nfsmout:
8364
nfsmout:
8361
	NFSCL_DEBUG(4, "eo nfsrpc_createlayout err=%d\n", error);
8365
	NFSCL_DEBUG(4, "eo nfsrpc_createlayout err=%d\n", error);

Return to bug 260011