mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[CRYPTO] api: Wake up all waiters when larval completes
Right now when a larval matures or when it dies of an error we only wake up one waiter. This would cause other waiters to timeout unnecessarily. This patch changes it to use complete_all to wake up all waiters. Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
2e290f43dd
commit
fe3c5206ad
2 changed files with 3 additions and 3 deletions
|
|
@ -144,7 +144,7 @@ static void crypto_larval_kill(struct crypto_alg *alg)
|
|||
down_write(&crypto_alg_sem);
|
||||
list_del(&alg->cra_list);
|
||||
up_write(&crypto_alg_sem);
|
||||
complete(&larval->completion);
|
||||
complete_all(&larval->completion);
|
||||
crypto_alg_put(alg);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue