diff options
author | Dave Jiang <[email protected]> | 2022-06-28 16:00:56 -0700 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2022-07-01 17:12:40 +0530 |
commit | 44c4237cf3436bda2b185ff728123651ad133f69 (patch) | |
tree | 37adad967fa02621446dd75b046eb128f502ad1e /tools/perf/scripts/python/stackcollapse.py | |
parent | 0ac9c3dd0d6fe293cd5044cfad10bec27d171e4e (diff) |
dmaengine: idxd: force wq context cleanup on device disable path
Testing shown that when a wq mode is setup to be dedicated and then torn
down and reconfigured to shared, the wq configured end up being dedicated
anyays. The root cause is when idxd_device_wqs_clear_state() gets called
during idxd_driver removal, idxd_wq_disable_cleanup() does not get called
vs when the wq driver is removed first. The check of wq state being
"enabled" causes the cleanup to be bypassed. However, idxd_driver->remove()
releases all wq drivers. So the wqs goes to "disabled" state and will never
be "enabled". By that point, the driver has no idea if the wq was
previously configured or clean. So force call idxd_wq_disable_cleanup() on
all wqs always to make sure everything gets cleaned up.
Reported-by: Tony Zhu <[email protected]>
Tested-by: Tony Zhu <[email protected]>
Fixes: 0dcfe41e9a4c ("dmanegine: idxd: cleanup all device related bits after disabling device")
Signed-off-by: Dave Jiang <[email protected]>
Co-developed-by: Fenghua Yu <[email protected]>
Signed-off-by: Fenghua Yu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions