crypto: ablk_helper - Fix cryptd reordering
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 21 Jun 2016 08:55:15 +0000 (16:55 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 23 Jun 2016 10:29:53 +0000 (18:29 +0800)
commit88407a39b5169889fe95a9355891b98437aa3e50
treeb58640d3876d25548de8a1edd14c832a558fbf44
parent38b2f68b426429c06cdf2ae5c8a89371524db203
crypto: ablk_helper - 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.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/ablk_helper.c