diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-05-19 09:51:40 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2007-07-11 14:58:53 +0200 |
commit | fe3c5206adc5d7395828185ab73e9a522655b984 (patch) | |
tree | afe289e4e685152f0051062a396c5d995f7d6c28 /crypto/api.c | |
parent | [CRYPTO] Kconfig: Use menuconfig objects (diff) | |
download | linux-fe3c5206adc5d7395828185ab73e9a522655b984.tar.xz linux-fe3c5206adc5d7395828185ab73e9a522655b984.zip |
[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 <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/api.c')
-rw-r--r-- | crypto/api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/api.c b/crypto/api.c index 33734fd9198f..4ccc5af6c265 100644 --- a/crypto/api.c +++ b/crypto/api.c @@ -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); } |