Lines Matching refs:call
157 struct nlm_rqst *call;
161 call = nlm_alloc_call(host);
162 if (call == NULL)
167 nlmclnt_setlockargs(call, fl);
172 call->a_args.block = IS_SETLKW(cmd) ? 1 : 0;
173 status = nlmclnt_lock(call, fl);
175 status = nlmclnt_unlock(call, fl);
177 status = nlmclnt_test(call, fl);
191 * Allocate an NLM RPC call struct
198 struct nlm_rqst *call;
201 call = kzalloc(sizeof(*call), GFP_KERNEL);
202 if (call != NULL) {
203 atomic_set(&call->a_count, 1);
204 locks_init_lock(&call->a_args.lock.fl);
205 locks_init_lock(&call->a_res.lock.fl);
206 call->a_host = host;
207 return call;
218 void nlm_release_call(struct nlm_rqst *call)
220 if (!atomic_dec_and_test(&call->a_count))
222 nlm_release_host(call->a_host);
223 nlmclnt_release_lockargs(call);
224 kfree(call);
251 * Generic NLM call
267 dprintk("lockd: call procedure %d on %s\n",
279 /* Perform the RPC call. If an error occurs, try again */
312 return 0; /* Okay, call complete */
329 * Generic NLM call, async version.
342 dprintk("lockd: call procedure %d on %s (async)\n",
352 /* bootstrap and kick off the async RPC call */
371 * NLM asynchronous call.
391 * NLM client asynchronous call.
497 * When given a blocking lock request in a sync RPC call, the HPUX lockd
503 * Solution B: Use the async version of the call (NLM_LOCK_{MSG,RES})
727 * We always use an async RPC call for this in order not to hang a
764 dprintk("lockd: CANCEL call error %d, retrying.\n",
782 printk(KERN_NOTICE "lockd: weird return %d for CANCEL call\n",