]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: hisilicon - add a lock for the qp send operation
authorChenghai Huang <huangchenghai2@huawei.com>
Sat, 31 Aug 2024 09:50:08 +0000 (17:50 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 6 Sep 2024 06:50:46 +0000 (14:50 +0800)
commit5fdb4b345cfb4f12ea95f6680779080e4e354100
tree01838d21c0addc9609ed3a78813620aabf63ab17
parentf386dc64e1a5d3dcb84579119ec350ab026fea88
crypto: hisilicon - add a lock for the qp send operation

Apply for a lock before the qp send operation to ensure no
resource race in multi-concurrency situations.

This modification has almost no impact on performance.

Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/hpre/hpre_crypto.c
drivers/crypto/hisilicon/zip/zip_crypto.c