# \[2/3\] dmaengine: mv\_xor: move spin\_lock\_bh to spin\_lock in tasklet

- From: Barry Song \<hidden\>
- Date: 2018-08-17 13:02:40 
- List: dmaengine
- Page: https://ratatoskr.run/dmaengine/2018/08/5359097
- Thread: https://ratatoskr.run/dmaengine/2018/08/5359097/t.md

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

Signed-off-by: Barry Song <redacted>
---
 drivers/dma/mv_xor.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c
index 969534c..7f59535 100644
--- a/drivers/dma/mv_xor.c
+++ b/drivers/dma/mv_xor.c
@@ -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 *
```
