summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Chen <tim.c.chen@linux.intel.com>2014-03-17 16:52:26 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2014-03-21 21:54:28 +0800
commit6bfa7c6cee76cc788719452c92b13c8dcd3beb5d (patch)
treea32de7d75120e794057a6703e2c538a0070b0663
parent2311b3526eccbbd1c6a880a8436e752527537ec6 (diff)
downloadlinux-crypto-6bfa7c6cee76cc788719452c92b13c8dcd3beb5d.tar.gz
linux-crypto-6bfa7c6cee76cc788719452c92b13c8dcd3beb5d.zip
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: Tim Chen <tim.c.chen@linux.intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--crypto/crypto_wq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/crypto_wq.c b/crypto/crypto_wq.c
index adad92a4..2f1b8d12 100644
--- a/crypto/crypto_wq.c
+++ b/crypto/crypto_wq.c
@@ -33,7 +33,7 @@ static void __exit crypto_wq_exit(void)
destroy_workqueue(kcrypto_wq);
}
-module_init(crypto_wq_init);
+subsys_initcall(crypto_wq_init);
module_exit(crypto_wq_exit);
MODULE_LICENSE("GPL");