linux/drivers/dma/idxd
Dave Jiang 673d812d30 dmaengine: idxd: fix wq slot allocation index check
The sbitmap wait and allocate routine checks the index that is returned
from sbitmap_queue_get(). It should be idxd >= 0 as 0 is also a valid
index. This fixes issue where submission path hangs when WQ size is 1.

Fixes: 0705107fcc ("dmaengine: idxd: move submission to sbitmap_queue")
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/162697645067.3478714.506720687816951762.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2021-07-28 17:55:40 +05:30
..
bus.c Bus: Make remove callback return void tag 2021-07-27 19:12:14 +05:30
cdev.c dmaengine: idxd: move dsa_drv support to compatible mode 2021-07-21 10:09:16 +05:30
compat.c dmaengine: idxd: fix uninit var for alt_drv 2021-07-28 17:55:40 +05:30
device.c dmaengine: idxd: move dsa_drv support to compatible mode 2021-07-21 10:09:16 +05:30
dma.c dmaengine: idxd: move dsa_drv support to compatible mode 2021-07-21 10:09:16 +05:30
idxd.h dmaengine: idxd: Set defaults for GRPCFG traffic class 2021-07-28 17:55:40 +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 fault processing code 2021-07-21 10:11:06 +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: fix wq slot allocation index check 2021-07-28 17:55:40 +05:30
sysfs.c dmaengine: idxd: Set defaults for GRPCFG traffic class 2021-07-28 17:55:40 +05:30