Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=fe3c5206adc5d7395828185ab73e9a522655b984
Commit:     fe3c5206adc5d7395828185ab73e9a522655b984
Parent:     2e290f43ddb2331db2e308da206fe154bec91a7d
Author:     Herbert Xu <[EMAIL PROTECTED]>
AuthorDate: Sat May 19 17:51:40 2007 +1000
Committer:  Herbert Xu <[EMAIL PROTECTED]>
CommitDate: Wed Jul 11 20:58:53 2007 +0800

    [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]>
---
 crypto/algapi.c |    4 ++--
 crypto/api.c    |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/crypto/algapi.c b/crypto/algapi.c
index f137a43..38aa9e9 100644
--- a/crypto/algapi.c
+++ b/crypto/algapi.c
@@ -34,7 +34,7 @@ void crypto_larval_error(const char *name, u32 type, u32 mask)
        if (alg) {
                if (crypto_is_larval(alg)) {
                        struct crypto_larval *larval = (void *)alg;
-                       complete(&larval->completion);
+                       complete_all(&larval->completion);
                }
                crypto_mod_put(alg);
        }
@@ -164,7 +164,7 @@ static int __crypto_register_alg(struct crypto_alg *alg,
                                continue;
 
                        larval->adult = alg;
-                       complete(&larval->completion);
+                       complete_all(&larval->completion);
                        continue;
                }
 
diff --git a/crypto/api.c b/crypto/api.c
index 33734fd..4ccc5af 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);
 }
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to