lkml.org 
[lkml]   [2014]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.10 056/103] crypto: crypto_wq - Fix late crypto work queue initialization
    Date
    3.10-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Tim Chen <tim.c.chen@linux.intel.com>

    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 <tim.c.chen@linux.intel.com>
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    crypto/crypto_wq.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- 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");



    \
     
     \ /
      Last update: 2014-06-05 02:01    [W:4.178 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site