Lines Matching defs:call

163 	struct nlm_rqst		*call;
167 call = nlm_alloc_call(host);
168 if (call == NULL)
177 nlmclnt_release_call(call);
181 nlmclnt_setlockargs(call, fl);
182 call->a_callback_data = data;
186 call->a_args.block = IS_SETLKW(cmd) ? 1 : 0;
187 status = nlmclnt_lock(call, fl);
189 status = nlmclnt_unlock(call, fl);
191 status = nlmclnt_test(call, fl);
203 * Allocate an NLM RPC call struct
207 struct nlm_rqst *call;
210 call = kzalloc(sizeof(*call), GFP_KERNEL);
211 if (call != NULL) {
212 refcount_set(&call->a_count, 1);
213 locks_init_lock(&call->a_args.lock.fl);
214 locks_init_lock(&call->a_res.lock.fl);
215 call->a_host = nlm_get_host(host);
216 return call;
226 void nlmclnt_release_call(struct nlm_rqst *call)
228 const struct nlmclnt_operations *nlmclnt_ops = call->a_host->h_nlmclnt_ops;
230 if (!refcount_dec_and_test(&call->a_count))
233 nlmclnt_ops->nlmclnt_release_call(call->a_callback_data);
234 nlmclnt_release_host(call->a_host);
235 nlmclnt_release_lockargs(call);
236 kfree(call);
261 * Generic NLM call
277 dprintk("lockd: call procedure %d on %s\n",
289 /* Perform the RPC call. If an error occurs, try again */
323 return 0; /* Okay, call complete */
340 * Generic NLM call, async version.
353 dprintk("lockd: call procedure %d on %s (async)\n",
363 /* bootstrap and kick off the async RPC call */
382 * NLM asynchronous call.
402 * NLM client asynchronous call.
503 * When given a blocking lock request in a sync RPC call, the HPUX lockd
509 * Solution B: Use the async version of the call (NLM_LOCK_{MSG,RES})
778 * We always use an async RPC call for this in order not to hang a
815 dprintk("lockd: CANCEL call error %d, retrying.\n",
830 printk(KERN_NOTICE "lockd: weird return %d for CANCEL call\n",