• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/lockd/

Lines Matching refs:call

15  * call) move blocked locks towards the head of the list *while some other
47 static int nlmsvc_setgrantargs(struct nlm_rqst *call, struct nlm_lock *lock);
48 static void nlmsvc_freegrantargs(struct nlm_rqst *call);
182 struct nlm_rqst *call = NULL;
185 call = nlm_alloc_call(host);
186 if (call == NULL)
197 if (!nlmsvc_setgrantargs(call, lock))
201 call->a_args.lock.fl.fl_flags |= FL_SLEEP;
202 call->a_args.lock.fl.fl_lmops = &nlmsvc_lock_operations;
203 nlmclnt_next_cookie(&call->a_args.cookie);
218 block->b_call = call;
219 call->a_flags = RPC_TASK_ASYNC;
220 call->a_block = block;
227 nlm_release_call(call);
301 * Initialize arguments for GRANTED call. The nlm_rqst structure
304 static int nlmsvc_setgrantargs(struct nlm_rqst *call, struct nlm_lock *lock)
306 locks_copy_lock(&call->a_args.lock.fl, &lock->fl);
307 memcpy(&call->a_args.lock.fh, &lock->fh, sizeof(call->a_args.lock.fh));
308 call->a_args.lock.caller = utsname()->nodename;
309 call->a_args.lock.oh.len = lock->oh.len;
312 call->a_args.lock.oh.data = call->a_owner;
313 call->a_args.lock.svid = lock->fl.fl_pid;
319 call->a_args.lock.oh.data = (u8 *) data;
322 memcpy(call->a_args.lock.oh.data, lock->oh.data, lock->oh.len);
326 static void nlmsvc_freegrantargs(struct nlm_rqst *call)
328 if (call->a_args.lock.oh.data != call->a_owner)
329 kfree(call->a_args.lock.oh.data);
331 locks_release_private(&call->a_args.lock.fl);
562 * This implies a CANCEL call: We send a GRANT_MSG, the client replies
563 * with a GRANT_RES call which gets lost, and calls UNLOCK immediately
718 * Note that we use both the RPC_GRANTED_MSG call _and_ an async
792 * RPC call has succeeded or timed out.
800 struct nlm_rqst *call = data;
801 struct nlm_block *block = call->a_block;
828 struct nlm_rqst *call = data;
831 nlmsvc_release_block(call->a_block);
868 * If it is a blocking lock, call grant_blocked.