aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/fs/nfsclient/nfs_clrpcops.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/fs/nfsclient/nfs_clrpcops.c b/sys/fs/nfsclient/nfs_clrpcops.c
index eac6c777324a..fbca55027807 100644
--- a/sys/fs/nfsclient/nfs_clrpcops.c
+++ b/sys/fs/nfsclient/nfs_clrpcops.c
@@ -1061,10 +1061,12 @@ nfsrpc_setclient(struct nfsmount *nmp, struct nfsclclient *clp, int reclaim,
*/
tsep = NULL;
if (TAILQ_FIRST(&nmp->nm_sess) != NULL) {
+ /*
+ * Mark the old session defunct. Needed
+ * when called from nfscl_hasexpired().
+ */
tsep = NFSMNT_MDSSESSION(nmp);
- if (tsep->nfsess_defunct == 0)
- printf("nfsrpc_setclient: "
- "nfsess_defunct not set\n");
+ tsep->nfsess_defunct = 1;
}
TAILQ_INSERT_HEAD(&nmp->nm_sess, dsp,
nfsclds_list);