Lines Matching refs:task
373 struct rpc_task *task; in nlm_do_async_call() local
375 task = __nlm_async_call(req, proc, msg, tk_ops); in nlm_do_async_call()
376 if (IS_ERR(task)) in nlm_do_async_call()
377 return PTR_ERR(task); in nlm_do_async_call()
378 rpc_put_task(task); in nlm_do_async_call()
417 struct rpc_task *task; in nlmclnt_async_call() local
420 task = __nlm_async_call(req, proc, &msg, tk_ops); in nlmclnt_async_call()
421 if (IS_ERR(task)) in nlmclnt_async_call()
422 return PTR_ERR(task); in nlmclnt_async_call()
423 err = rpc_wait_for_completion_task(task); in nlmclnt_async_call()
424 rpc_put_task(task); in nlmclnt_async_call()
730 static void nlmclnt_unlock_prepare(struct rpc_task *task, void *data) in nlmclnt_unlock_prepare() argument
737 defer_call = nlmclnt_ops->nlmclnt_unlock_prepare(task, req->a_callback_data); in nlmclnt_unlock_prepare()
740 rpc_call_start(task); in nlmclnt_unlock_prepare()
743 static void nlmclnt_unlock_callback(struct rpc_task *task, void *data) in nlmclnt_unlock_callback() argument
748 if (RPC_SIGNALLED(task)) in nlmclnt_unlock_callback()
751 if (task->tk_status < 0) { in nlmclnt_unlock_callback()
752 dprintk("lockd: unlock failed (err = %d)\n", -task->tk_status); in nlmclnt_unlock_callback()
753 switch (task->tk_status) { in nlmclnt_unlock_callback()
762 rpc_delay(task, NLMCLNT_GRACE_WAIT); in nlmclnt_unlock_callback()
772 rpc_restart_call(task); in nlmclnt_unlock_callback()
811 static void nlmclnt_cancel_callback(struct rpc_task *task, void *data) in nlmclnt_cancel_callback() argument
816 if (RPC_SIGNALLED(task)) in nlmclnt_cancel_callback()
819 if (task->tk_status < 0) { in nlmclnt_cancel_callback()
821 task->tk_status); in nlmclnt_cancel_callback()
847 rpc_restart_call(task); in nlmclnt_cancel_callback()
848 rpc_delay(task, 30 * HZ); in nlmclnt_cancel_callback()