]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: algapi - Move larval completion into algboss
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Jun 2012 12:08:29 +0000 (20:08 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Jun 2012 12:08:29 +0000 (20:08 +0800)
commita03bab992c2fc5e2cc76ce25e370b7a52588e4b9
treebfdc735759f0f32c883a36a53534a729fdc0f87c
parentf08a1678b1d472cd0d4c29386a8b4f7012242259
crypto: algapi - Move larval completion into algboss

It has been observed that sometimes the crypto allocation code
will get stuck for 60 seconds or multiples thereof.  This is
usually caused by an algorithm failing to pass the self-test.

If an algorithm fails to be constructed, we will immediately notify
all larval waiters.  However, if it succeeds in construction, but
then fails the self-test, we won't notify anyone at all.

This patch fixes this by merging the notification in the case
where the algorithm fails to be constructed with that of the
the case where it pases the self-test.  This way regardless of
what happens, we'll give the larval waiters an answer.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/algapi.c
crypto/algboss.c
crypto/internal.h