crypto: aesni - Fix cryptd reordering problem on gcm
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 21 Jun 2016 08:55:14 +0000 (16:55 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 23 Jun 2016 10:29:52 +0000 (18:29 +0800)
commit38b2f68b426429c06cdf2ae5c8a89371524db203
treebceabceea3214feb3419f23128cb59346cf50a47
parent81760ea6a95ad4c41273a71052f61b9f087b5753
crypto: aesni - Fix cryptd reordering problem on gcm

This patch fixes an old bug where gcm requests can be reordered
because some are processed by cryptd while others are processed
directly in softirq context.

The fix is to always postpone to cryptd if there are currently
requests outstanding from the same tfm.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/aesni-intel_glue.c