Patchwork [3.11,38/70] crypto: crypto_wq - Fix late crypto work queue initialization

mail settings
Submitter Luis Henriques
Date May 7, 2014, 1:12 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/346633/
State New
Headers show


Luis Henriques - May 7, 2014, 1:12 p.m. -stable review patch.  If anyone has any objections, please let me know.


From: Tim Chen <>

commit 130fa5bc81b44b6cc1fbdea3abf6db0da22964e0 upstream.

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 <>
Signed-off-by: Herbert Xu <>
Signed-off-by: Luis Henriques <>
 crypto/crypto_wq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/crypto/crypto_wq.c b/crypto/crypto_wq.c
index adad92a..2f1b8d1 100644
--- a/crypto/crypto_wq.c
+++ b/crypto/crypto_wq.c
@@ -33,7 +33,7 @@  static void __exit crypto_wq_exit(void)