Commit 90cb3ca2 authored by Tuo Cao's avatar Tuo Cao Committed by Herbert Xu

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: default avatarTuo Cao <91tuocao@gmail.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent a76bd86a
...@@ -2091,7 +2091,7 @@ static void artpec6_crypto_task(unsigned long data) ...@@ -2091,7 +2091,7 @@ static void artpec6_crypto_task(unsigned long data)
return; return;
} }
spin_lock_bh(&ac->queue_lock); spin_lock(&ac->queue_lock);
list_for_each_entry_safe(req, n, &ac->pending, list) { list_for_each_entry_safe(req, n, &ac->pending, list) {
struct artpec6_crypto_dma_descriptors *dma = req->dma; struct artpec6_crypto_dma_descriptors *dma = req->dma;
...@@ -2128,7 +2128,7 @@ static void artpec6_crypto_task(unsigned long data) ...@@ -2128,7 +2128,7 @@ static void artpec6_crypto_task(unsigned long data)
artpec6_crypto_process_queue(ac, &complete_in_progress); 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 /* Perform the completion callbacks without holding the queue lock
* to allow new request submissions from the callbacks. * to allow new request submissions from the callbacks.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment