diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-06-12 16:02:37 +0200 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-07-11 05:40:30 +0200 |
commit | 6e5b70e9d1e712d8dad5514e0ab5240ac4b5fb57 (patch) | |
tree | cb6c293dd5adf1b966dcd5681649fafc690fd053 /net/sunrpc/sched.c | |
parent | SUNRPC: Move rpc_register_client and friends into net/sunrpc/clnt.c (diff) | |
download | linux-6e5b70e9d1e712d8dad5514e0ab5240ac4b5fb57.tar.xz linux-6e5b70e9d1e712d8dad5514e0ab5240ac4b5fb57.zip |
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.c | 23 |
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) rpc_put_task(task); } -/** - * rpc_run_task - Allocate a new RPC task, then run rpc_execute against it - * @clnt: pointer to RPC client - * @flags: RPC flags - * @ops: RPC call ops - * @data: user call data - */ -struct rpc_task *rpc_run_task(struct rpc_clnt *clnt, int flags, - const struct rpc_call_ops *ops, - void *data) -{ - struct rpc_task *task; - task = rpc_new_task(clnt, flags, ops, data); - if (task == NULL) { - rpc_release_calldata(ops, data); - return ERR_PTR(-ENOMEM); - } - atomic_inc(&task->tk_count); - rpc_execute(task); - return task; -} -EXPORT_SYMBOL(rpc_run_task); - /* * Kill all tasks for the given client. * XXX: kill their descendants as well? |