Skip to content

Commit

Permalink
crypto: crypto_wq - Fix late crypto work queue initialization
Browse files Browse the repository at this point in the history
commit 130fa5b 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 <tim.c.chen@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
  • Loading branch information
pdxChen authored and Jiri Slaby committed Jun 9, 2014
1 parent 9c660fc commit 0406b6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/crypto_wq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 0406b6f

Please sign in to comment.