Lines Matching refs:clp
58 struct nfs_client *clp =
65 ops = clp->cl_mvops->state_renewal_ops;
68 if (test_bit(NFS_CS_STOP_RENEW, &clp->cl_res_state))
71 lease = clp->cl_lease_time;
72 last = clp->cl_last_renewal;
77 if (nfs_delegations_present(clp))
81 cred = ops->get_state_renewal_cred(clp);
84 set_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state);
87 nfs_expire_all_delegations(clp);
92 ret = ops->sched_state_renewal(clp, cred, renew_flags);
106 nfs4_schedule_state_renewal(clp);
108 nfs_expire_unreferenced_delegations(clp);
114 nfs4_schedule_state_renewal(struct nfs_client *clp)
118 spin_lock(&clp->cl_lock);
119 timeout = (2 * clp->cl_lease_time) / 3 + (long)clp->cl_last_renewal
125 mod_delayed_work(system_wq, &clp->cl_renewd, timeout);
126 set_bit(NFS_CS_RENEWD, &clp->cl_res_state);
127 spin_unlock(&clp->cl_lock);
131 nfs4_kill_renewd(struct nfs_client *clp)
133 cancel_delayed_work_sync(&clp->cl_renewd);
139 * @clp: pointer to nfs_client
142 void nfs4_set_lease_period(struct nfs_client *clp,
145 spin_lock(&clp->cl_lock);
146 clp->cl_lease_time = lease;
147 spin_unlock(&clp->cl_lock);
150 rpc_set_connect_timeout(clp->cl_rpcclient, lease, lease >> 1);