Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Yunbo Yu <yuyunbo519@gmail.com>
Link: https://lore.kernel.org/r/20220420122754.148359-1-yuyunbo519@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Yunbo Yu and committed by
Vinod Koul
99faef48 63c14ae6

+2 -2
+2 -2
drivers/dma/mv_xor_v2.c
··· 591 591 dma_run_dependencies(&next_pending_sw_desc->async_tx); 592 592 593 593 /* Lock the channel */ 594 - spin_lock_bh(&xor_dev->lock); 594 + spin_lock(&xor_dev->lock); 595 595 596 596 /* add the SW descriptor to the free descriptors list */ 597 597 list_add(&next_pending_sw_desc->free_list, 598 598 &xor_dev->free_sw_desc); 599 599 600 600 /* Release the channel */ 601 - spin_unlock_bh(&xor_dev->lock); 601 + spin_unlock(&xor_dev->lock); 602 602 603 603 /* increment the next descriptor */ 604 604 pending_ptr++;