Lines Matching defs:call

160 	struct nlm_rqst		*call;
164 call = nlm_alloc_call(host);
165 if (call == NULL)
174 nlmclnt_release_call(call);
178 nlmclnt_setlockargs(call, fl);
179 call->a_callback_data = data;
183 call->a_args.block = IS_SETLKW(cmd) ? 1 : 0;
184 status = nlmclnt_lock(call, fl);
186 status = nlmclnt_unlock(call, fl);
188 status = nlmclnt_test(call, fl);
200 * Allocate an NLM RPC call struct
204 struct nlm_rqst *call;
207 call = kzalloc(sizeof(*call), GFP_KERNEL);
208 if (call != NULL) {
209 refcount_set(&call->a_count, 1);
210 locks_init_lock(&call->a_args.lock.fl);
211 locks_init_lock(&call->a_res.lock.fl);
212 call->a_host = nlm_get_host(host);
213 return call;
223 void nlmclnt_release_call(struct nlm_rqst *call)
225 const struct nlmclnt_operations *nlmclnt_ops = call->a_host->h_nlmclnt_ops;
227 if (!refcount_dec_and_test(&call->a_count))
230 nlmclnt_ops->nlmclnt_release_call(call->a_callback_data);
231 nlmclnt_release_host(call->a_host);
232 nlmclnt_release_lockargs(call);
233 kfree(call);
258 * Generic NLM call
274 dprintk("lockd: call procedure %d on %s\n",
286 /* Perform the RPC call. If an error occurs, try again */
320 return 0; /* Okay, call complete */
337 * Generic NLM call, async version.
350 dprintk("lockd: call procedure %d on %s (async)\n",
360 /* bootstrap and kick off the async RPC call */
379 * NLM asynchronous call.
399 * 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})
755 * We always use an async RPC call for this in order not to hang a
792 dprintk("lockd: CANCEL call error %d, retrying.\n",
810 printk(KERN_NOTICE "lockd: weird return %d for CANCEL call\n",