diff options
author | Dave Jiang <dave.jiang@intel.com> | 2021-04-20 22:00:56 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2021-04-23 20:38:45 +0300 |
commit | 53b2ee7f637c4f1fa2f50dbdb210088e30c11d2b (patch) | |
tree | 21b9c0f7b51c0db013e3c62dc81f6a4edf61f824 /drivers/dma/idxd/idxd.h | |
parent | 5b0c68c473a131c2acb21abad44b0047b200e185 (diff) | |
download | linux-53b2ee7f637c4f1fa2f50dbdb210088e30c11d2b.tar.xz |
dmaengine: idxd: device cmd should use dedicated lock
Create a dedicated lock for device command operations. Put the device
command operation under finer grained locking instead of using the
idxd->dev_lock.
Suggested-by: Sanjay Kumar <sanjay.k.kumar@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/161894525685.3210132.16160045731436382560.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/idxd/idxd.h')
-rw-r--r-- | drivers/dma/idxd/idxd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/idxd/idxd.h b/drivers/dma/idxd/idxd.h index d7185c6bfade..87330b6940fa 100644 --- a/drivers/dma/idxd/idxd.h +++ b/drivers/dma/idxd/idxd.h @@ -204,6 +204,7 @@ struct idxd_device { void __iomem *reg_base; spinlock_t dev_lock; /* spinlock for device */ + spinlock_t cmd_lock; /* spinlock for device commands */ struct completion *cmd_done; struct idxd_group **groups; struct idxd_wq **wqs; |