Commit 0a2e821d627ad5ced23cf31137625b81cc205e0f

Authored by Huang Ying
Committed by Herbert Xu
1 parent 254eff7714

crypto: chainiv - Use kcrypto_wq instead of keventd_wq

keventd_wq has potential starvation problem, so use dedicated
kcrypto_wq instead.

Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

Showing 2 changed files with 3 additions and 1 deletions Side-by-side Diff

... ... @@ -56,6 +56,7 @@
56 56 tristate
57 57 select CRYPTO_ALGAPI2
58 58 select CRYPTO_RNG2
  59 + select CRYPTO_WORKQUEUE
59 60  
60 61 config CRYPTO_HASH
61 62 tristate
... ... @@ -15,6 +15,7 @@
15 15  
16 16 #include <crypto/internal/skcipher.h>
17 17 #include <crypto/rng.h>
  18 +#include <crypto/crypto_wq.h>
18 19 #include <linux/err.h>
19 20 #include <linux/init.h>
20 21 #include <linux/kernel.h>
... ... @@ -133,7 +134,7 @@
133 134 goto out;
134 135 }
135 136  
136   - queued = schedule_work(&ctx->postponed);
  137 + queued = queue_work(kcrypto_wq, &ctx->postponed);
137 138 BUG_ON(!queued);
138 139  
139 140 out: