mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
SUNRPC: Further cleanups
Signed-off-by: Trond Myklebust <[email protected]>
This commit is contained in:
parent
963d8fe533
commit
4ce70ada1f
4 changed files with 27 additions and 18 deletions
|
|
@ -554,6 +554,14 @@ __rpc_atrun(struct rpc_task *task)
|
|||
rpc_wake_up_task(task);
|
||||
}
|
||||
|
||||
/*
|
||||
* Helper to call task->tk_ops->rpc_call_prepare
|
||||
*/
|
||||
static void rpc_prepare_task(struct rpc_task *task)
|
||||
{
|
||||
task->tk_ops->rpc_call_prepare(task, task->tk_calldata);
|
||||
}
|
||||
|
||||
/*
|
||||
* Helper that calls task->tk_ops->rpc_call_done if it exists
|
||||
*/
|
||||
|
|
@ -756,6 +764,8 @@ void rpc_init_task(struct rpc_task *task, struct rpc_clnt *clnt, int flags, cons
|
|||
task->tk_client = clnt;
|
||||
task->tk_flags = flags;
|
||||
task->tk_ops = tk_ops;
|
||||
if (tk_ops->rpc_call_prepare != NULL)
|
||||
task->tk_action = rpc_prepare_task;
|
||||
task->tk_calldata = calldata;
|
||||
|
||||
/* Initialize retry counters */
|
||||
|
|
|
|||
Loading…
Reference in a new issue