Commit a4a87499 authored by Trond Myklebust's avatar Trond Myklebust

SUNRPC: Cleanup to remove the last users of the RPC_WAITQ declaration

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 47fe0648
...@@ -45,7 +45,7 @@ static void rpc_release_task(struct rpc_task *task); ...@@ -45,7 +45,7 @@ static void rpc_release_task(struct rpc_task *task);
/* /*
* RPC tasks sit here while waiting for conditions to improve. * 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 * rpciod-related stuff
...@@ -1059,6 +1059,11 @@ rpc_init_mempool(void) ...@@ -1059,6 +1059,11 @@ rpc_init_mempool(void)
goto err_nomem; goto err_nomem;
if (!rpciod_start()) if (!rpciod_start())
goto err_nomem; 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; return 0;
err_nomem: err_nomem:
rpc_destroy_mempool(); rpc_destroy_mempool();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment