Re: [PATCH] Fix late crypto work queue initialization

2014-03-25 Thread Tim Chen
On Fri, 2014-03-21 at 22:40 +0800, Herbert Xu wrote:
 On Mon, Mar 17, 2014 at 04:52:26PM -0700, Tim Chen wrote:
  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.c...@linux.intel.com
 
 Patch applied.

Herbert,

Probably this patch should go to the stable patches as well.
Copying Greg.

Thanks.

Tim

--
To unsubscribe from this list: send the line unsubscribe linux-crypto in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH] Fix late crypto work queue initialization

2014-03-21 Thread Herbert Xu
On Mon, Mar 17, 2014 at 04:52:26PM -0700, Tim Chen wrote:
 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.c...@linux.intel.com

Patch applied.
-- 
Email: Herbert Xu herb...@gondor.apana.org.au
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line unsubscribe linux-crypto in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH] Fix late crypto work queue initialization

2014-03-20 Thread Tim Chen
On Mon, 2014-03-17 at 16:52 -0700, Tim Chen wrote:
 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.c...@linux.intel.com
 ---
  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)
   destroy_workqueue(kcrypto_wq);
  }
  
 -module_init(crypto_wq_init);
 +subsys_initcall(crypto_wq_init);
  module_exit(crypto_wq_exit);
  
  MODULE_LICENSE(GPL);

Herbert,

Any feedback on this patch?

Thanks.

Tim

--
To unsubscribe from this list: send the line unsubscribe linux-crypto in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html