summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-07-18 19:24:19 +0200
committerTrond Myklebust <Trond.Myklebust@netapp.com>2008-01-30 08:05:41 +0100
commita4a874990cbc1bc5df6f357c4f2d043cd1923e15 (patch)
treeb7a0bcc477fc277f8062e08151acccfbf527c6f6 /net
parentSUNRPC: Unexport rpc_init_task() and rpc_execute() (diff)
downloadlinux-a4a874990cbc1bc5df6f357c4f2d043cd1923e15.tar.xz
linux-a4a874990cbc1bc5df6f357c4f2d043cd1923e15.zip
SUNRPC: Cleanup to remove the last users of the RPC_WAITQ declaration
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net')
-rw-r--r--net/sunrpc/sched.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/sunrpc/sched.c b/net/sunrpc/sched.c
index ce6cfae91e88..40ce6f6672d6 100644
--- a/net/sunrpc/sched.c
+++ b/net/sunrpc/sched.c
@@ -45,7 +45,7 @@ static void rpc_release_task(struct rpc_task *task);
/*
* RPC tasks sit here while waiting for conditions to improve.
*/
-static RPC_WAITQ(delay_queue, "delayq");
+static struct rpc_wait_queue delay_queue;
/*
* rpciod-related stuff
@@ -1059,6 +1059,11 @@ rpc_init_mempool(void)
goto err_nomem;
if (!rpciod_start())
goto err_nomem;
+ /*
+ * The following is not strictly a mempool initialisation,
+ * but there is no harm in doing it here
+ */
+ rpc_init_wait_queue(&delay_queue, "delayq");
return 0;
err_nomem:
rpc_destroy_mempool();