OpenCloudOS-Kernel/drivers
Dave Jiang 6a0cb77f14 dmaengine: idxd: fix resource leak on dmaengine driver disable
commit a3e340c157 upstream.

The wq resources needs to be released before the kernel type is reset by
__drv_disable_wq(). With dma channels unregistered and wq quiesced, all the
wq resources for dmaengine can be freed. There is no need to wait until wq
is disabled. With the wq->type being reset to "unknown", the driver is
skipping the freeing of the resources.

Fixes: 0cda4f6986 ("dmaengine: idxd: create dmaengine driver for wq 'device'")
Reported-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Tested-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/163517405099.3484556.12521975053711345244.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Chen Zhuo <sagazchen@tencent.com>
Signed-off-by: Xinghui Li <korantli@tencent.com>
2024-06-11 21:09:35 +08:00
..
accessibility
acpi device property: Add a function to obtain a node's prefix 2024-06-11 21:07:40 +08:00
amba ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
android ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
ata ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
atm ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
auxdisplay ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
base device property: Add a function to obtain a node's prefix 2024-06-11 21:07:40 +08:00
bcma bcma: make arrays pwr_info_offset and sprom_sizes static const, shrinks object size 2019-09-13 16:44:49 +03:00
block ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
bluetooth ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
bus ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
cdrom tkernel: add base tlinux kernel interfaces 2024-06-11 20:09:33 +08:00
char ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
clk ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
clocksource ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
connector
counter ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
cpufreq ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
cpuidle ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
crypto ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
dax ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
dca
devfreq ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
dio
dma dmaengine: idxd: fix resource leak on dmaengine driver disable 2024-06-11 21:09:35 +08:00
dma-buf ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
edac ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
eisa
extcon ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
firewire ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
firmware ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
fpga ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
fsi tkernel: add base tlinux kernel interfaces 2024-06-11 20:09:33 +08:00
gnss ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
gpio ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
gpu drm, iommu: Change type of pasid to u32 2024-06-11 21:07:28 +08:00
greybus
hid ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
hsi ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
hv ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
hwmon ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
hwspinlock
hwtracing ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
i2c ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
i3c ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
ide ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
idle ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
iio ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
infiniband ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
input ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
interconnect ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
iommu iommu/vt-d: Drop "0x" prefix from PCI bus & device addresses 2024-06-11 21:08:25 +08:00
ipack ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
irqchip ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
isdn ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
leds ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
lightnvm ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
macintosh ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
mailbox ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
mcb
md ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
media ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
memory ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
memstick ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
message ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
mfd ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
misc ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
mmc ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
mtd ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
mux
net ice: update E810 100g nic driver 2024-06-11 21:05:23 +08:00
nfc ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
ntb ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
nubus
nvdimm ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
nvme ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
nvmem ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
of device property: Add a function to obtain a node's prefix 2024-06-11 21:07:40 +08:00
opp ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
oprofile
parisc ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
parport tkernel: add base tlinux kernel interfaces 2024-06-11 20:09:33 +08:00
pci x86/apic: Cleanup delivery mode defines 2024-06-11 21:07:31 +08:00
pcmcia Merge branch 'next-lockdown' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security 2019-09-28 08:14:15 -07:00
perf ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
phy ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
pinctrl ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
platform ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
pnp
power ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
powercap ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
pps
ps3 ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
ptp tkernel: add base tlinux kernel interfaces 2024-06-11 20:09:33 +08:00
pwm ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
rapidio ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
ras ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
regulator ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
remoteproc ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
reset tkernel: add base tlinux kernel interfaces 2024-06-11 20:09:33 +08:00
rpmsg ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
rtc ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
s390 ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
sbus
scsi ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
sfi
sh
siox
slimbus ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
soc ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
soundwire ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
spi ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
spmi ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
ssb ssb: make array pwr_info_offset static const, makes object smaller 2019-09-13 17:23:18 +03:00
staging ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
target ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
tc
tee ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
thermal ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
thunderbolt ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
tty ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
uio ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
usb ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
vfio iommu: remove DOMAIN_ATTR_NESTING 2024-06-11 21:08:04 +08:00
vhost ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
video ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
virt ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
virtio ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
visorbus tkernel: add base tlinux kernel interfaces 2024-06-11 20:09:33 +08:00
vlynq
vme tkernel: add base tlinux kernel interfaces 2024-06-11 20:09:33 +08:00
w1 ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
watchdog ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
xen ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
zorro
Kconfig Staging/IIO driver patches for 5.4-rc1 2019-09-18 11:05:34 -07:00
Makefile tkernel: add base tlinux kernel interfaces 2024-06-11 20:09:33 +08:00