Lines Matching defs:call

16  * call) move blocked locks towards the head of the list *while some other
48 static int nlmsvc_setgrantargs(struct nlm_rqst *call, struct nlm_lock *lock);
49 static void nlmsvc_freegrantargs(struct nlm_rqst *call);
230 struct nlm_rqst *call = NULL;
232 call = nlm_alloc_call(host);
233 if (call == NULL)
244 if (!nlmsvc_setgrantargs(call, lock))
248 call->a_args.lock.fl.fl_flags |= FL_SLEEP;
249 call->a_args.lock.fl.fl_lmops = &nlmsvc_lock_operations;
250 nlmclnt_next_cookie(&call->a_args.cookie);
264 block->b_call = call;
265 call->a_flags = RPC_TASK_ASYNC;
266 call->a_block = block;
273 nlmsvc_release_call(call);
417 * Initialize arguments for GRANTED call. The nlm_rqst structure
420 static int nlmsvc_setgrantargs(struct nlm_rqst *call, struct nlm_lock *lock)
422 locks_copy_lock(&call->a_args.lock.fl, &lock->fl);
423 memcpy(&call->a_args.lock.fh, &lock->fh, sizeof(call->a_args.lock.fh));
424 call->a_args.lock.caller = utsname()->nodename;
425 call->a_args.lock.oh.len = lock->oh.len;
428 call->a_args.lock.oh.data = call->a_owner;
429 call->a_args.lock.svid = ((struct nlm_lockowner *)lock->fl.fl_owner)->pid;
435 call->a_args.lock.oh.data = (u8 *) data;
438 memcpy(call->a_args.lock.oh.data, lock->oh.data, lock->oh.len);
442 static void nlmsvc_freegrantargs(struct nlm_rqst *call)
444 if (call->a_args.lock.oh.data != call->a_owner)
445 kfree(call->a_args.lock.oh.data);
447 locks_release_private(&call->a_args.lock.fl);
652 * This implies a CANCEL call: We send a GRANT_MSG, the client replies
653 * with a GRANT_RES call which gets lost, and calls UNLOCK immediately
819 * Note that we use both the RPC_GRANTED_MSG call _and_ an async
903 * RPC call has succeeded or timed out.
911 struct nlm_rqst *call = data;
912 struct nlm_block *block = call->a_block;
951 struct nlm_rqst *call = data;
952 nlmsvc_release_block(call->a_block);
1001 * If it is a blocking lock, call grant_blocked.