diff options
| author | Rosen Penev <rosenp@gmail.com> | 2026-07-17 22:30:10 -0700 |
|---|---|---|
| committer | Vinod Koul <vkoul@kernel.org> | 2026-09-03 19:17:44 +0530 |
| commit | 62c267ce97444f8a381f2bb3cd5d534eb362c540 (patch) | |
| tree | fcf06c887eaa252e5a3b2d4c2cbaf9986afa80e5 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | e99f446c47318f4489eb3a675d53d4047951a6d0 (diff) | |
dmaengine: fsl_raid: don't invoke client callback under desc_lock
fsl_re_dequeue() holds re_chan->desc_lock while calling
fsl_re_desc_done(), which synchronously invokes the DMA client completion
callback via dmaengine_desc_get_callback_invoke(). If that callback
submits new work (e.g. fsl_re_tx_submit()), it tries to reacquire the
same desc_lock and deadlocks on the spinlock.
Collect completed descriptors into a local list under the lock, then
release the lock and invoke the callbacks before moving the descriptors
to the ack queue.
Fixes: ad80da658bbc ("dmaengine: Driver support for FSL RaidEngine device.")
Assisted-by: opencode:hy3-free
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260718053010.3074329-1-rosenp@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
