Lines Matching defs:task
369 struct rpc_task *task;
371 task = __nlm_async_call(req, proc, msg, tk_ops);
372 if (IS_ERR(task))
373 return PTR_ERR(task);
374 rpc_put_task(task);
413 struct rpc_task *task;
416 task = __nlm_async_call(req, proc, &msg, tk_ops);
417 if (IS_ERR(task))
418 return PTR_ERR(task);
419 err = rpc_wait_for_completion_task(task);
420 rpc_put_task(task);
702 static void nlmclnt_unlock_prepare(struct rpc_task *task, void *data)
709 defer_call = nlmclnt_ops->nlmclnt_unlock_prepare(task, req->a_callback_data);
712 rpc_call_start(task);
715 static void nlmclnt_unlock_callback(struct rpc_task *task, void *data)
720 if (RPC_SIGNALLED(task))
723 if (task->tk_status < 0) {
724 dprintk("lockd: unlock failed (err = %d)\n", -task->tk_status);
725 switch (task->tk_status) {
734 rpc_delay(task, NLMCLNT_GRACE_WAIT);
744 rpc_restart_call(task);
783 static void nlmclnt_cancel_callback(struct rpc_task *task, void *data)
788 if (RPC_SIGNALLED(task))
791 if (task->tk_status < 0) {
793 task->tk_status);
797 dprintk("lockd: cancel status %u (task %u)\n",
798 status, task->tk_pid);
822 rpc_restart_call(task);
823 rpc_delay(task, 30 * HZ);