dmaengine: mv_xor: move spin_lock_bh to spin_lock in tasklet
authorBarry Song <21cnbao@gmail.com>
Fri, 17 Aug 2018 13:02:02 +0000 (06:02 -0700)
committerVinod Koul <vkoul@kernel.org>
Mon, 3 Sep 2018 10:53:31 +0000 (16:23 +0530)
as you are already in a tasklet, it is unnecessary to call spin_lock_bh.

Signed-off-by: Barry Song <21cnbao@gmail.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/mv_xor.c

index 969534c..7f59535 100644 (file)
@@ -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 *