aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/sched.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-06-12 10:02:37 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-07-10 23:40:30 -0400
commit6e5b70e9d1e712d8dad5514e0ab5240ac4b5fb57 (patch)
treecb6c293dd5adf1b966dcd5681649fafc690fd053 /net/sunrpc/sched.c
parent188fef11db219f13f32d055ba59985e7d1a349fe (diff)
SUNRPC: clean up rpc_call_async/rpc_call_sync/rpc_run_task
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/sched.c')
-rw-r--r--net/sunrpc/sched.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/net/sunrpc/sched.c b/net/sunrpc/sched.c
index c0f8d25caf57..2ac43c41c3a9 100644
--- a/net/sunrpc/sched.c
+++ b/net/sunrpc/sched.c
@@ -933,29 +933,6 @@ static void rpc_release_task(struct rpc_task *task)
933 rpc_put_task(task); 933 rpc_put_task(task);
934} 934}
935 935
936/**
937 * rpc_run_task - Allocate a new RPC task, then run rpc_execute against it
938 * @clnt: pointer to RPC client
939 * @flags: RPC flags
940 * @ops: RPC call ops
941 * @data: user call data
942 */
943struct rpc_task *rpc_run_task(struct rpc_clnt *clnt, int flags,
944 const struct rpc_call_ops *ops,
945 void *data)
946{
947 struct rpc_task *task;
948 task = rpc_new_task(clnt, flags, ops, data);
949 if (task == NULL) {
950 rpc_release_calldata(ops, data);
951 return ERR_PTR(-ENOMEM);
952 }
953 atomic_inc(&task->tk_count);
954 rpc_execute(task);
955 return task;
956}
957EXPORT_SYMBOL(rpc_run_task);
958
959/* 936/*
960 * Kill all tasks for the given client. 937 * Kill all tasks for the given client.
961 * XXX: kill their descendants as well? 938 * XXX: kill their descendants as well?