Lines Matching refs:host
51 nlmclnt_block(struct nlm_host *host, struct file_lock *fl, u32 *statp) in nlmclnt_block() argument
57 block.b_host = host; in nlmclnt_block()
65 pstate = host->h_state; in nlmclnt_block()
92 if (pstate == host->h_state && (err = nlmclnt_cancel(host, fl)) < 0) in nlmclnt_block()
140 void nlmclnt_mark_reclaim(struct nlm_host *host) in nlmclnt_mark_reclaim() argument
152 if (fl->fl_u.nfs_fl.host != host) in nlmclnt_mark_reclaim()
165 void nlmclnt_prepare_reclaim(struct nlm_host *host, u32 newstate) in nlmclnt_prepare_reclaim() argument
167 host->h_monitored = 0; in nlmclnt_prepare_reclaim()
168 host->h_nsmstate = newstate; in nlmclnt_prepare_reclaim()
169 host->h_state++; in nlmclnt_prepare_reclaim()
170 host->h_nextrebind = 0; in nlmclnt_prepare_reclaim()
171 nlm_rebind_host(host); in nlmclnt_prepare_reclaim()
172 nlmclnt_mark_reclaim(host); in nlmclnt_prepare_reclaim()
173 dprintk("NLM: reclaiming locks for host %s", host->h_name); in nlmclnt_prepare_reclaim()
181 nlmclnt_recovery(struct nlm_host *host, u32 newstate) in nlmclnt_recovery() argument
183 if (host->h_reclaiming++) { in nlmclnt_recovery()
184 if (host->h_nsmstate == newstate) in nlmclnt_recovery()
186 nlmclnt_prepare_reclaim(host, newstate); in nlmclnt_recovery()
188 nlmclnt_prepare_reclaim(host, newstate); in nlmclnt_recovery()
189 nlm_get_host(host); in nlmclnt_recovery()
191 if (kernel_thread(reclaimer, host, CLONE_SIGNAL) < 0) in nlmclnt_recovery()
199 struct nlm_host *host = (struct nlm_host *) ptr; in reclaimer() local
209 host->h_name); in reclaimer()
224 if (fl->fl_u.nfs_fl.host != host) in reclaimer()
230 nlmclnt_reclaim(host, fl); in reclaimer()
236 host->h_reclaiming = 0; in reclaimer()
237 wake_up(&host->h_gracewait); in reclaimer()
241 if (block->b_host == host) { in reclaimer()
248 nlm_release_host(host); in reclaimer()