mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
254eff7714
commit
0a2e821d62
2 changed files with 3 additions and 1 deletions
|
|
@ -15,6 +15,7 @@
|
|||
|
||||
#include <crypto/internal/skcipher.h>
|
||||
#include <crypto/rng.h>
|
||||
#include <crypto/crypto_wq.h>
|
||||
#include <linux/err.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/kernel.h>
|
||||
|
|
@ -133,7 +134,7 @@ static int async_chainiv_schedule_work(struct async_chainiv_ctx *ctx)
|
|||
goto out;
|
||||
}
|
||||
|
||||
queued = schedule_work(&ctx->postponed);
|
||||
queued = queue_work(kcrypto_wq, &ctx->postponed);
|
||||
BUG_ON(!queued);
|
||||
|
||||
out:
|
||||
|
|
|
|||
Loading…
Reference in a new issue