diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-05-19 17:51:40 +1000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2007-07-11 20:58:53 +0800 |
commit | f4728238dbc1eae3a6258c73cc69d5726cb6bd8e (patch) | |
tree | 46c8e62e7eae7f0de51d1afead25d212cace7039 /crypto/api.c | |
parent | 4c0c4b4f8188d55849b97a916e92cd905826e2bd (diff) | |
download | linux-crypto-f4728238dbc1eae3a6258c73cc69d5726cb6bd8e.tar.gz linux-crypto-f4728238dbc1eae3a6258c73cc69d5726cb6bd8e.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 33734fd9..4ccc5af6 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); } |