Lines Matching defs:host

56 	struct nlm_host *host;
64 host = nlmclnt_lookup_host(nlm_init->address, nlm_init->addrlen,
68 if (host == NULL)
70 if (host->h_rpcclnt == NULL && nlm_bind_host(host) == NULL)
73 host->h_nlmclnt_ops = nlm_init->nlmclnt_ops;
74 return host;
76 nlmclnt_release_host(host);
85 * @host: nlm_host structure reserved by nlmclnt_init()
88 void nlmclnt_done(struct nlm_host *host)
90 struct net *net = host->net;
92 nlmclnt_release_host(host);
100 struct nlm_wait *nlmclnt_prepare_block(struct nlm_host *host, struct file_lock *fl)
106 block->b_host = host;
210 * Reclaim all locks on server host. We do this by spawning a separate
214 nlmclnt_recovery(struct nlm_host *host)
218 if (!host->h_reclaiming++) {
219 nlm_get_host(host);
220 task = kthread_run(reclaimer, host, "%s-reclaim", host->h_name);
224 "(%ld)\n", host->h_name, PTR_ERR(task));
231 struct nlm_host *host = (struct nlm_host *) ptr;
236 struct net *net = host->net;
244 down_write(&host->h_rwsem);
247 dprintk("lockd: reclaiming locks for host %s\n", host->h_name);
250 nsmstate = host->h_nsmstate;
255 host->h_nextrebind = jiffies;
256 nlm_rebind_host(host);
259 list_splice_init(&host->h_granted, &host->h_reclaim);
260 list_for_each_entry_safe(fl, next, &host->h_reclaim, fl_u.nfs_fl.list) {
267 * reclaimer thread is spawned for this host.
271 if (nlmclnt_reclaim(host, fl, req) != 0)
273 list_add_tail(&fl->fl_u.nfs_fl.list, &host->h_granted);
274 if (host->h_nsmstate != nsmstate) {
280 host->h_reclaiming = 0;
281 up_write(&host->h_rwsem);
282 dprintk("NLM: done reclaiming locks for host %s\n", host->h_name);
287 if (block->b_host == host) {
294 /* Release host handle after use */
295 nlmclnt_release_host(host);