Lines Matching defs:host
47 struct nlm_host *host;
55 host = nlmclnt_lookup_host(nlm_init->address, nlm_init->addrlen,
59 if (host == NULL)
61 if (host->h_rpcclnt == NULL && nlm_bind_host(host) == NULL)
64 host->h_nlmclnt_ops = nlm_init->nlmclnt_ops;
65 return host;
67 nlmclnt_release_host(host);
76 * @host: nlm_host structure reserved by nlmclnt_init()
79 void nlmclnt_done(struct nlm_host *host)
81 struct net *net = host->net;
83 nlmclnt_release_host(host);
88 void nlmclnt_prepare_block(struct nlm_wait *block, struct nlm_host *host, struct file_lock *fl)
90 block->b_host = host;
96 struct rpc_clnt *nlmclnt_rpc_clnt(struct nlm_host *host)
98 return host->h_rpcclnt;
208 * Reclaim all locks on server host. We do this by spawning a separate
212 nlmclnt_recovery(struct nlm_host *host)
216 if (!host->h_reclaiming++) {
217 nlm_get_host(host);
218 task = kthread_run(reclaimer, host, "%s-reclaim", host->h_name);
222 "(%ld)\n", host->h_name, PTR_ERR(task));
229 struct nlm_host *host = (struct nlm_host *) ptr;
234 struct net *net = host->net;
242 down_write(&host->h_rwsem);
245 dprintk("lockd: reclaiming locks for host %s\n", host->h_name);
248 nsmstate = host->h_nsmstate;
253 host->h_nextrebind = jiffies;
254 nlm_rebind_host(host);
257 list_splice_init(&host->h_granted, &host->h_reclaim);
258 list_for_each_entry_safe(fl, next, &host->h_reclaim, fl_u.nfs_fl.list) {
265 * reclaimer thread is spawned for this host.
269 if (nlmclnt_reclaim(host, fl, req) != 0)
271 list_add_tail(&fl->fl_u.nfs_fl.list, &host->h_granted);
272 if (host->h_nsmstate != nsmstate) {
278 host->h_reclaiming = 0;
279 up_write(&host->h_rwsem);
280 dprintk("NLM: done reclaiming locks for host %s\n", host->h_name);
285 if (block->b_host == host) {
292 /* Release host handle after use */
293 nlmclnt_release_host(host);