OSDN Git Service

dmaengine: idxd: rework descriptor free path on failure
authorDave Jiang <dave.jiang@intel.com>
Tue, 26 Oct 2021 21:36:02 +0000 (14:36 -0700)
committerVinod Koul <vkoul@kernel.org>
Mon, 22 Nov 2021 05:51:26 +0000 (11:21 +0530)
commit5d78abb6fbc974d601dd365b9ce39f320fb5ba79
treed11c8ed3d85d8a730239e3ada156c3556b626978
parent365fceecd66e2f4c9b4c4f636b506079052562ea
dmaengine: idxd: rework descriptor free path on failure

Refactor the completion function to allow skipping of descriptor freeing on
the submission failure path. This completely removes descriptor freeing
from the submit failure path and leave the responsibility to the caller.

Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/163528416222.3925689.12859769271667814762.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/dma.c
drivers/dma/idxd/idxd.h
drivers/dma/idxd/init.c
drivers/dma/idxd/irq.c
drivers/dma/idxd/submit.c