diff options
author | Dave Jiang <dave.jiang@intel.com> | 2021-07-22 10:54:10 -0700 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2021-07-28 17:55:40 +0530 |
commit | 673d812d30be67942762bb9e8548abb26a3ba4a7 (patch) | |
tree | 22ba83e6886b265c8acd1f691d3b2846ed6503b5 /tools/perf/scripts/python/stackcollapse.py | |
parent | 568b2126466f926a10be0b53b40c2d6ae056d8d6 (diff) |
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: 0705107fcc80 ("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>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions