diff options
author | Yunbo Yu <yuyunbo519@gmail.com> | 2022-04-18 22:20:21 +0800 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2022-04-20 15:59:33 +0530 |
commit | 1d05a0bdb420ddb3e2d7f39cdc24ff16d6902f55 (patch) | |
tree | 5f6560c43408e999d926960fe22f08ccd127c4f7 /drivers/dma | |
parent | 766b540df8a374f75d7ad7084da026439c107825 (diff) | |
download | linux-1d05a0bdb420ddb3e2d7f39cdc24ff16d6902f55.tar.gz linux-1d05a0bdb420ddb3e2d7f39cdc24ff16d6902f55.tar.bz2 linux-1d05a0bdb420ddb3e2d7f39cdc24ff16d6902f55.zip |
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>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/plx_dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/plx_dma.c b/drivers/dma/plx_dma.c index 1ffcb5ca9788..12725fa1655f 100644 --- a/drivers/dma/plx_dma.c +++ b/drivers/dma/plx_dma.c @@ -137,7 +137,7 @@ static void plx_dma_process_desc(struct plx_dma_dev *plxdev) struct plx_dma_desc *desc; u32 flags; - spin_lock_bh(&plxdev->ring_lock); + spin_lock(&plxdev->ring_lock); while (plxdev->tail != plxdev->head) { desc = plx_dma_get_desc(plxdev, plxdev->tail); @@ -165,7 +165,7 @@ static void plx_dma_process_desc(struct plx_dma_dev *plxdev) plxdev->tail++; } - spin_unlock_bh(&plxdev->ring_lock); + spin_unlock(&plxdev->ring_lock); } static void plx_dma_abort_desc(struct plx_dma_dev *plxdev) |