aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/sched.c
diff options
context:
space:
mode:
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?