aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2006-01-03 03:55:05 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2006-01-06 14:58:40 -0500
commit4ce70ada1ff1d0b80916ec9ec5764ce44a50a54f (patch)
tree9bc9ffc691679a4423a6b8724a27607c9ad7ea2c /net
parent963d8fe53339128ee46a7701f2e36305f0ccff8c (diff)
SUNRPC: Further cleanups
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net')
-rw-r--r--net/sunrpc/sched.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/net/sunrpc/sched.c b/net/sunrpc/sched.c
index 8d6233d3248b..2d74a1672028 100644
--- a/net/sunrpc/sched.c
+++ b/net/sunrpc/sched.c
@@ -555,6 +555,14 @@ __rpc_atrun(struct rpc_task *task)
555} 555}
556 556
557/* 557/*
558 * Helper to call task->tk_ops->rpc_call_prepare
559 */
560static void rpc_prepare_task(struct rpc_task *task)
561{
562 task->tk_ops->rpc_call_prepare(task, task->tk_calldata);
563}
564
565/*
558 * Helper that calls task->tk_ops->rpc_call_done if it exists 566 * Helper that calls task->tk_ops->rpc_call_done if it exists
559 */ 567 */
560void rpc_exit_task(struct rpc_task *task) 568void rpc_exit_task(struct rpc_task *task)
@@ -756,6 +764,8 @@ void rpc_init_task(struct rpc_task *task, struct rpc_clnt *clnt, int flags, cons
756 task->tk_client = clnt; 764 task->tk_client = clnt;
757 task->tk_flags = flags; 765 task->tk_flags = flags;
758 task->tk_ops = tk_ops; 766 task->tk_ops = tk_ops;
767 if (tk_ops->rpc_call_prepare != NULL)
768 task->tk_action = rpc_prepare_task;
759 task->tk_calldata = calldata; 769 task->tk_calldata = calldata;
760 770
761 /* Initialize retry counters */ 771 /* Initialize retry counters */