diff options
author | Barry Song <21cnbao@gmail.com> | 2018-08-17 09:02:02 -0400 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2018-09-03 06:53:31 -0400 |
commit | cbc229a47c82052677cac3066db7cb90aa8ffdc2 (patch) | |
tree | 511c0a69ad8eb41430bec217fbac5e8ce608e087 | |
parent | 5b394b2ddf0347bef56e50c69a58773c94343ff3 (diff) |
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.
Signed-off-by: Barry Song <21cnbao@gmail.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r-- | drivers/dma/mv_xor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c index 969534c1a6c6..7f595355fb79 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) | |||
348 | { | 348 | { |
349 | struct mv_xor_chan *chan = (struct mv_xor_chan *) data; | 349 | struct mv_xor_chan *chan = (struct mv_xor_chan *) data; |
350 | 350 | ||
351 | spin_lock_bh(&chan->lock); | 351 | spin_lock(&chan->lock); |
352 | mv_chan_slot_cleanup(chan); | 352 | mv_chan_slot_cleanup(chan); |
353 | spin_unlock_bh(&chan->lock); | 353 | spin_unlock(&chan->lock); |
354 | } | 354 | } |
355 | 355 | ||
356 | static struct mv_xor_desc_slot * | 356 | static struct mv_xor_desc_slot * |