Skip to contentSkip to conversation

dmaengine: mv_xor: move spin_lock_bh to spin_lock in tasklet

PATCH Applied Barry Song 1 participant 1 message Aug 17, 2018 dmaengine

lore
Share & tools
lore

Barry Song

author
#0 lore raw

PATCH 2/3 dmaengine: mv_xor: move spin_lock_bh to spin_lock in tasklet

as you are already in a tasklet, it is unnecessary to call spin_lock_bh.

---
 drivers/dma/mv_xor.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/dma/mv_xor.c +2 -2
index 969534c..7f59535 100644
@@ -348,9 +348,9 @@ static void mv_xor_tasklet(unsigned long data)
 {
 	struct mv_xor_chan *chan = (struct mv_xor_chan *) data;
 
-	spin_lock_bh(&chan->lock);
+	spin_lock(&chan->lock);
 	mv_chan_slot_cleanup(chan);
-	spin_unlock_bh(&chan->lock);
+	spin_unlock(&chan->lock);
 }
 
 static struct mv_xor_desc_slot *