diff options
author | Tim Chen <tim.c.chen@linux.intel.com> | 2014-03-17 19:52:26 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2014-03-21 09:54:28 -0400 |
commit | 130fa5bc81b44b6cc1fbdea3abf6db0da22964e0 (patch) | |
tree | 93490a0a776c5740ed043af4c2a8a3fb246d7af0 /crypto | |
parent | ec31eed754e2fd43938e72ef9e1b60aa55ccb417 (diff) |
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>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/crypto_wq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/crypto_wq.c b/crypto/crypto_wq.c index adad92a44ba2..2f1b8d12952a 100644 --- a/crypto/crypto_wq.c +++ b/crypto/crypto_wq.c | |||
@@ -33,7 +33,7 @@ static void __exit crypto_wq_exit(void) | |||
33 | destroy_workqueue(kcrypto_wq); | 33 | destroy_workqueue(kcrypto_wq); |
34 | } | 34 | } |
35 | 35 | ||
36 | module_init(crypto_wq_init); | 36 | subsys_initcall(crypto_wq_init); |
37 | module_exit(crypto_wq_exit); | 37 | module_exit(crypto_wq_exit); |
38 | 38 | ||
39 | MODULE_LICENSE("GPL"); | 39 | MODULE_LICENSE("GPL"); |