]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: qce - switch to using a mutex
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 3 Dec 2024 09:19:37 +0000 (10:19 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 14 Dec 2024 09:21:43 +0000 (17:21 +0800)
commit3382c44f0c6fb26469b1df75575643c68c421291
tree13ad4164fc5deeb6a0ea12361d0019992072b862
parenteb7986e5e14d3db69e387da2c8bcef92b4c1a625
crypto: qce - switch to using a mutex

Having switched to workqueue from tasklet, we are no longer limited to
atomic APIs and can now convert the spinlock to a mutex. This, along
with the conversion from tasklet to workqueue grants us ~15% improvement
in cryptsetup benchmarks for AES encryption.

While at it: use guards to simplify locking code.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qce/core.c
drivers/crypto/qce/core.h