]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: zynqmp_dma: refine dma descriptor locking
authorMichael Tretter <m.tretter@pengutronix.de>
Thu, 26 Aug 2021 09:47:41 +0000 (11:47 +0200)
committerVinod Koul <vkoul@kernel.org>
Fri, 1 Oct 2021 11:56:30 +0000 (17:26 +0530)
commit28439eda7461648472e3b35aa6ad2cebb7c5c36d
tree0c3a697b778f8ad4bd5454e6230a8e4355b3b1f3
parent312f07a7a63bdf72dfecdd206649a1c6a028474e
dmaengine: zynqmp_dma: refine dma descriptor locking

The descriptor lists are locked for the entire tasklet that completes
the descriptors. This is not necessary, because the lock actually only
protects the descriptor lists.

Make the spin lock more fine-grained and only protect functions that
actually operate on the descriptor lists. This decreases the time when
the lock is held.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Link: https://lore.kernel.org/r/20210826094742.1302009-7-m.tretter@pengutronix.de
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/zynqmp_dma.c