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

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

It is unnecessary to call spin_lock_bh() if you are already in a tasklet.

Signed-off-by: Yunbo Yu <yuyunbo519@gmail.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Link: https://lore.kernel.org/r/20220418142021.1241558-1-yuyunbo519@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Yunbo Yu and committed by
Vinod Koul
1d05a0bd 766b540d

+2 -2
+2 -2
drivers/dma/plx_dma.c
··· 137 137 struct plx_dma_desc *desc; 138 138 u32 flags; 139 139 140 - spin_lock_bh(&plxdev->ring_lock); 140 + spin_lock(&plxdev->ring_lock); 141 141 142 142 while (plxdev->tail != plxdev->head) { 143 143 desc = plx_dma_get_desc(plxdev, plxdev->tail); ··· 165 165 plxdev->tail++; 166 166 } 167 167 168 - spin_unlock_bh(&plxdev->ring_lock); 168 + spin_unlock(&plxdev->ring_lock); 169 169 } 170 170 171 171 static void plx_dma_abort_desc(struct plx_dma_dev *plxdev)