Skip to content

Commit

Permalink
dmaengine: mv_xor: move spin_lock_bh to spin_lock in tasklet
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Barry Song authored and Vinod Koul committed Sep 3, 2018
1 parent 5b394b2 commit cbc229a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/dma/mv_xor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand Down

0 comments on commit cbc229a

Please sign in to comment.