Lines Matching refs:clp

58 	struct nfs_client *clp =  in nfs4_renew_state()  local
65 ops = clp->cl_mvops->state_renewal_ops; in nfs4_renew_state()
68 if (test_bit(NFS_CS_STOP_RENEW, &clp->cl_res_state)) in nfs4_renew_state()
71 spin_lock(&clp->cl_lock); in nfs4_renew_state()
72 lease = clp->cl_lease_time; in nfs4_renew_state()
73 last = clp->cl_last_renewal; in nfs4_renew_state()
78 if (nfs_delegations_present(clp)) in nfs4_renew_state()
82 cred = ops->get_state_renewal_cred_locked(clp); in nfs4_renew_state()
83 spin_unlock(&clp->cl_lock); in nfs4_renew_state()
86 set_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state); in nfs4_renew_state()
89 nfs_expire_all_delegations(clp); in nfs4_renew_state()
94 ret = ops->sched_state_renewal(clp, cred, renew_flags); in nfs4_renew_state()
107 spin_unlock(&clp->cl_lock); in nfs4_renew_state()
109 nfs4_schedule_state_renewal(clp); in nfs4_renew_state()
111 nfs_expire_unreferenced_delegations(clp); in nfs4_renew_state()
117 nfs4_schedule_state_renewal(struct nfs_client *clp) in nfs4_schedule_state_renewal() argument
121 spin_lock(&clp->cl_lock); in nfs4_schedule_state_renewal()
122 timeout = (2 * clp->cl_lease_time) / 3 + (long)clp->cl_last_renewal in nfs4_schedule_state_renewal()
128 mod_delayed_work(system_wq, &clp->cl_renewd, timeout); in nfs4_schedule_state_renewal()
129 set_bit(NFS_CS_RENEWD, &clp->cl_res_state); in nfs4_schedule_state_renewal()
130 spin_unlock(&clp->cl_lock); in nfs4_schedule_state_renewal()
134 nfs4_kill_renewd(struct nfs_client *clp) in nfs4_kill_renewd() argument
136 cancel_delayed_work_sync(&clp->cl_renewd); in nfs4_kill_renewd()