|
@@ -1400,6 +1400,15 @@ static int nfs4_set_client(struct nfs_server *server,
|
|
|
goto error;
|
|
|
}
|
|
|
|
|
|
+ /*
|
|
|
+ * Query for the lease time on clientid setup or renewal
|
|
|
+ *
|
|
|
+ * Note that this will be set on nfs_clients that were created
|
|
|
+ * only for the DS role and did not set this bit, but now will
|
|
|
+ * serve a dual role.
|
|
|
+ */
|
|
|
+ set_bit(NFS_CS_CHECK_LEASE_TIME, &clp->cl_res_state);
|
|
|
+
|
|
|
server->nfs_client = clp;
|
|
|
dprintk("<-- nfs4_set_client() = 0 [new %p]\n", clp);
|
|
|
return 0;
|