linux/drivers/dma/idxd
Dave Jiang 85f604af9c dmaengine: idxd: move out percpu_ref_exit() to ensure it's outside submission
percpu_ref_tryget_live() is safe to call as long as ref is between init and
exit according to the function comment. Move percpu_ref_exit() so it is
called after the dma channel is no longer valid to ensure this holds true.

Fixes: 93a40a6d74 ("dmaengine: idxd: add percpu_ref to descriptor submission path")
Suggested-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/163294293832.914350.10326422026738506152.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2021-10-01 17:28:48 +05:30
..
bus.c Bus: Make remove callback return void tag 2021-07-27 19:12:14 +05:30
cdev.c dmaengine: idxd: remove interrupt disable for dev_lock 2021-08-29 19:14:20 +05:30
compat.c dmaengine: idxd: Fix a possible NULL pointer dereference 2021-08-02 12:35:10 +05:30
device.c dmaengine: idxd: move out percpu_ref_exit() to ensure it's outside submission 2021-10-01 17:28:48 +05:30
dma.c dmaengine: idxd: move out percpu_ref_exit() to ensure it's outside submission 2021-10-01 17:28:48 +05:30
idxd.h dmanegine: idxd: add software command status 2021-07-28 17:56:55 +05:30
init.c dmaengine: idxd: Set defaults for GRPCFG traffic class 2021-07-28 17:55:40 +05:30
irq.c dmaengine: idxd: remove interrupt disable for dev_lock 2021-08-29 19:14:20 +05:30
Makefile dmaengine: idxd: move dsa_drv support to compatible mode 2021-07-21 10:09:16 +05:30
perfmon.c dmaengine: idxd: Add IDXD performance monitor support 2021-04-25 21:46:12 +05:30
perfmon.h dmaengine: idxd: Add IDXD performance monitor support 2021-04-25 21:46:12 +05:30
registers.h dmaengine: idxd: Set defaults for GRPCFG traffic class 2021-07-28 17:55:40 +05:30
submit.c dmaengine: idxd: make submit failure path consistent on desc freeing 2021-08-25 17:00:24 +05:30
sysfs.c dmaengine: idxd: remove interrupt disable for dev_lock 2021-08-29 19:14:20 +05:30