Lines Matching refs:call

164 	struct nlm_rqst		*call;
168 call = nlm_alloc_call(host);
169 if (call == NULL)
178 nlmclnt_release_call(call);
182 nlmclnt_setlockargs(call, fl);
183 call->a_callback_data = data;
187 call->a_args.block = IS_SETLKW(cmd) ? 1 : 0;
188 status = nlmclnt_lock(call, fl);
190 status = nlmclnt_unlock(call, fl);
192 status = nlmclnt_test(call, fl);
204 * Allocate an NLM RPC call struct
208 struct nlm_rqst *call;
211 call = kzalloc(sizeof(*call), GFP_KERNEL);
212 if (call != NULL) {
213 refcount_set(&call->a_count, 1);
214 locks_init_lock(&call->a_args.lock.fl);
215 locks_init_lock(&call->a_res.lock.fl);
216 call->a_host = nlm_get_host(host);
217 return call;
227 void nlmclnt_release_call(struct nlm_rqst *call)
229 const struct nlmclnt_operations *nlmclnt_ops = call->a_host->h_nlmclnt_ops;
231 if (!refcount_dec_and_test(&call->a_count))
234 nlmclnt_ops->nlmclnt_release_call(call->a_callback_data);
235 nlmclnt_release_host(call->a_host);
236 nlmclnt_release_lockargs(call);
237 kfree(call);
262 * Generic NLM call
278 dprintk("lockd: call procedure %d on %s\n",
290 /* Perform the RPC call. If an error occurs, try again */
324 return 0; /* Okay, call complete */
341 * Generic NLM call, async version.
354 dprintk("lockd: call procedure %d on %s (async)\n",
364 /* bootstrap and kick off the async RPC call */
383 * NLM asynchronous call.
403 * NLM client asynchronous call.
506 * When given a blocking lock request in a sync RPC call, the HPUX lockd
512 * Solution B: Use the async version of the call (NLM_LOCK_{MSG,RES})
783 * We always use an async RPC call for this in order not to hang a
820 dprintk("lockd: CANCEL call error %d, retrying.\n",
835 printk(KERN_NOTICE "lockd: weird return %d for CANCEL call\n",