crypto: qat - ring returning retry even though ring has BW
authorHarvijay Saini <harvijayx.saini@intel.com>
Wed, 9 Dec 2015 19:59:45 +0000 (11:59 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 11 Dec 2015 14:55:16 +0000 (22:55 +0800)
commit06cabd755a97325cd5f53e73153fd10f4ea51cb7
tree7f4b372fd31e1f63eb30f430796bed56a32f5469
parente14a1f1e36e76580c1094694f2f666ac582b34df
crypto: qat - ring returning retry even though ring has BW

When many threads submit multiple requests they get blocked until all
responses are processed, which prevents them from submitting more requests
even though there is space on the rings.
To fix this we need to decrement the inflight counter early to in the callback.

Signed-off-by: Harvijay Saini <harvijayx.saini@intel.com>
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/adf_transport.c