dmaengine: idxd: create locked version of idxd_quiesce() call
authorDave Jiang <dave.jiang@intel.com>
Tue, 26 Oct 2021 21:36:29 +0000 (14:36 -0700)
committerVinod Koul <vkoul@kernel.org>
Mon, 22 Nov 2021 05:51:26 +0000 (11:21 +0530)
commitbd5970a0d01f8e45af9b2e2cf1d245b84ea757ba
tree4912b0ed32cd6d6b537667c13c8f255cdbdd6a8e
parent46c6df1c958e55558212cfa94cad201eae48d684
dmaengine: idxd: create locked version of idxd_quiesce() call

Add a locked version of idxd_quiesce() call so that the quiesce can be
called with a lock in situations where the lock is not held by the caller.

In the driver probe/remove path, the lock is already held, so the raw
version can be called w/o locking.

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