]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: ghash-clmulni - Fix cryptd reordering
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 21 Jun 2016 08:55:16 +0000 (16:55 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 23 Jun 2016 10:29:53 +0000 (18:29 +0800)
commitdec0d8649a38b5db5475d90082d3ddcc865b76d2
tree8f2a481df2882431f0025e39f1e7928815a571a6
parentd258f245b5ec8b04aedf71819b8cd8c77cdab5a6
crypto: ghash-clmulni - Fix cryptd reordering

This patch fixes an old bug where 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.

This patch also removes the redundant use of cryptd in the async
init function as init never touches the FPU.

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