Commit
0a2e821d627ad5ced23cf31137625b81cc205e0f
Exists in
master
and in
39 other branches
8mp-imx_5.4.70_2.3.0, 8qm-imx_5.4.70_2.3.0, emb_imx_lf-5.15.y, emb_lf-6.1.y, imx_3.0.35_4.1.0, imx_3.10.17_1.0.1_ga, imx_3.10.53_1.1.0_ga, imx_3.14.28_1.0.0_ga, imx_4.1.15_1.0.0_ga, pitx_8mp_lf-5.10.y, rt-smarc-imx_4.1.15_1.0.0_ga, rt_linux_5.15.71, smarc-8m-android-11.0.0_2.0.0, smarc-imx6_4.14.98_2.0.0_ga, smarc-imx6_4.9.88_2.0.0_ga, smarc-imx7_4.14.98_2.0.0_ga, smarc-imx7_4.9.11_1.0.0_ga, smarc-imx7_4.9.88_2.0.0_ga, smarc-imx_3.10.53_1.1.0_ga, smarc-imx_3.14.28_1.0.0_ga, smarc-imx_4.1.15_1.0.0_ga, smarc-imx_4.9.11_1.0.0_ga, smarc-imx_4.9.51_imx8m_ga, smarc-imx_4.9.88_2.0.0_ga, smarc-m6.0.1_2.1.0-ga, smarc-n7.1.2_2.0.0-ga, smarc-rel_imx_4.1.15_1.2.0_ga, smarc_8m_00d0_imx_4.14.98_2.0.0_ga, smarc_8m_imx_4.14.78_1.0.0_ga, smarc_8m_imx_4.14.98_2.0.0_ga, smarc_8m_imx_4.19.35_1.1.0, smarc_8mm_imx_4.14.78_1.0.0_ga, smarc_8mm_imx_4.14.98_2.0.0_ga, smarc_8mm_imx_4.19.35_1.1.0, smarc_8mm_imx_5.4.24_2.1.0, smarc_8mp_lf-5.10.y, smarc_8mq_imx_5.4.24_2.1.0, smarc_8mq_lf-5.10.y, smarc_imx_lf-5.15.y
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: |