Skip to contentSkip to conversation

dmaengine: mv_xor_v2 : Move spin_lock_bh() to spin_lock()

PATCH Applied Yunbo Yu 2 participants 2 messages Apr 20, 2022 – Apr 22, 2022 dmaengine

lore
Share & tools
lore

Yunbo Yu

author
#0 lore raw

PATCH v2 1/1 dmaengine: mv_xor_v2 : Move spin_lock_bh() to spin_lock()

It is unnecessary to call spin_lock_bh() for that you are already in a tasklet.

---
 drivers/dma/mv_xor_v2.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/dma/mv_xor_v2.c +2 -2
index 9c8b4084ba2f..f10b29034da1 100644
@@ -591,14 +591,14 @@ static void mv_xor_v2_tasklet(struct tasklet_struct *t)
 		dma_run_dependencies(&next_pending_sw_desc->async_tx);
 
 		/* Lock the channel */
-		spin_lock_bh(&xor_dev->lock);
+		spin_lock(&xor_dev->lock);
 
 		/* add the SW descriptor to the free descriptors list */
 		list_add(&next_pending_sw_desc->free_list,
 			 &xor_dev->free_sw_desc);
 
 		/* Release the channel */
-		spin_unlock_bh(&xor_dev->lock);
+		spin_unlock(&xor_dev->lock);
 
 		/* increment the next descriptor */
 		pending_ptr++;
Signature · 1 line
2.25.1
maintainer Applied
#1 lore raw
Quoted 2 lines · Yunbo Yu

It is unnecessary to call spin_lock_bh() for that you are already in a tasklet.

Applied, thanks

Signature · 1 line
~Vinod