Commit 130fa5bc authored by Tim Chen's avatar Tim Chen Committed by Herbert Xu

crypto: crypto_wq - Fix late crypto work queue initialization

The crypto algorithm modules utilizing the crypto daemon could
be used early when the system start up.  Using module_init
does not guarantee that the daemon's work queue is initialized
when the cypto alorithm depending on crypto_wq starts.  It is necessary
to initialize the crypto work queue earlier at the subsystem
init time to make sure that it is initialized
when used.
Signed-off-by: default avatarTim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent ec31eed7
...@@ -33,7 +33,7 @@ static void __exit crypto_wq_exit(void) ...@@ -33,7 +33,7 @@ static void __exit crypto_wq_exit(void)
destroy_workqueue(kcrypto_wq); destroy_workqueue(kcrypto_wq);
} }
module_init(crypto_wq_init); subsys_initcall(crypto_wq_init);
module_exit(crypto_wq_exit); module_exit(crypto_wq_exit);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
......
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