Commit 99faef48 authored by Yunbo Yu's avatar Yunbo Yu Committed by Vinod Koul

dmaengine: mv_xor_v2 : Move spin_lock_bh() to spin_lock()

It is unnecessary to call spin_lock_bh() for that you are already
in a tasklet.
Signed-off-by: default avatarYunbo Yu <yuyunbo519@gmail.com>
Link: https://lore.kernel.org/r/20220420122754.148359-1-yuyunbo519@gmail.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 63c14ae6
...@@ -591,14 +591,14 @@ static void mv_xor_v2_tasklet(struct tasklet_struct *t) ...@@ -591,14 +591,14 @@ static void mv_xor_v2_tasklet(struct tasklet_struct *t)
dma_run_dependencies(&next_pending_sw_desc->async_tx); dma_run_dependencies(&next_pending_sw_desc->async_tx);
/* Lock the channel */ /* Lock the channel */
spin_lock_bh(&xor_dev->lock); spin_lock(&xor_dev->lock);
/* add the SW descriptor to the free descriptors list */ /* add the SW descriptor to the free descriptors list */
list_add(&next_pending_sw_desc->free_list, list_add(&next_pending_sw_desc->free_list,
&xor_dev->free_sw_desc); &xor_dev->free_sw_desc);
/* Release the channel */ /* Release the channel */
spin_unlock_bh(&xor_dev->lock); spin_unlock(&xor_dev->lock);
/* increment the next descriptor */ /* increment the next descriptor */
pending_ptr++; pending_ptr++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment