dmaengine: idxd: add per DSA wq workqueue for processing cr faults
authorDave Jiang <dave.jiang@intel.com>
Fri, 7 Apr 2023 20:31:33 +0000 (13:31 -0700)
committerVinod Koul <vkoul@kernel.org>
Wed, 12 Apr 2023 17:48:45 +0000 (23:18 +0530)
commit2f30decd2f23a376d2ed73dfe4c601421edf501a
treeb934a1c1e1608efaad006153bc380c3756816d4b
parent5fbe6503b52f5665560584f62adab5db70ac910e
dmaengine: idxd: add per DSA wq workqueue for processing cr faults

Add a workqueue for user submitted completion record fault processing.
The workqueue creation and destruction lifetime will be tied to the user
sub-driver since it will only be used when the wq is a user type.

Tested-by: Tony Zhu <tony.zhu@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Co-developed-by: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Link: https://lore.kernel.org/r/20230407203143.2189681-7-fenghua.yu@intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/cdev.c
drivers/dma/idxd/idxd.h