lkml.org 
[lkml]   [2022]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] crypto: axis: artpec6_crypto: move spin_lock_bh to spin_lock in tasklet
Date
it is unnecessary to call spin_lock_bh in a tasklet.

Signed-off-by: Tuo Cao <91tuocao@gmail.com>
---
drivers/crypto/axis/artpec6_crypto.c | 4 ++--
1 file 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.
--
2.17.1
\
 
 \ /
  Last update: 2022-08-14 15:02    [W:0.252 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site