summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuo Cao <91tuocao@gmail.com>2022-08-14 21:00:54 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2022-08-19 18:39:39 +0800
commit90cb3ca2fa4f5c4c3fbeb9014584b69b1ba26242 (patch)
treebf964bdcbda4d8c3de827839383114a57e37136d
parenta76bd86a85cac9feddc66d38019f943d054f0218 (diff)
crypto: artpec6 - move spin_lock_bh to spin_lock in tasklet
it is unnecessary to call spin_lock_bh in a tasklet. Signed-off-by: Tuo Cao <91tuocao@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--drivers/crypto/axis/artpec6_crypto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/axis/artpec6_crypto.c b/drivers/crypto/axis/artpec6_crypto.c
index 9ad188cffd0d..b4820594ab80 100644
--- a/drivers/crypto/axis/artpec6_crypto.c
+++ b/drivers/crypto/axis/artpec6_crypto.c
@@ -2091,7 +2091,7 @@ static void artpec6_crypto_task(unsigned long data)
return;
}
- spin_lock_bh(&ac->queue_lock);
+ spin_lock(&ac->queue_lock);
list_for_each_entry_safe(req, n, &ac->pending, list) {
struct artpec6_crypto_dma_descriptors *dma = req->dma;
@@ -2128,7 +2128,7 @@ static void artpec6_crypto_task(unsigned long data)
artpec6_crypto_process_queue(ac, &complete_in_progress);
- spin_unlock_bh(&ac->queue_lock);
+ spin_unlock(&ac->queue_lock);
/* Perform the completion callbacks without holding the queue lock
* to allow new request submissions from the callbacks.