Commit 0a2e821d627ad5ced23cf31137625b81cc205e0f
Committed by
Herbert Xu
1 parent
254eff7714
Exists in
master
and in
7 other branches
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
crypto/Kconfig
crypto/chainiv.c
... | ... | @@ -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: |