summaryrefslogtreecommitdiff
path: root/include/linux/workqueue_api.h
diff options
context:
space:
mode:
authorSunil Khatri <sunil.khatri@amd.com>2026-05-18 17:28:08 +0300
committerAlex Deucher <alexander.deucher@amd.com>2026-05-27 17:40:29 +0300
commit1a66ceb98b137d18d303b9889f0e7d8c4db73943 (patch)
tree849f1783d65dea80808f1502daf0e974ab111f96 /include/linux/workqueue_api.h
parentd409ab4e387d94b2e593d558b54b7bfd315e0e75 (diff)
downloadlinux-1a66ceb98b137d18d303b9889f0e7d8c4db73943.tar.xz
drm/amdgpu/userq: make sure queue is valid in the hang_detect_work
Thread 1: Running amdgpu_userq_destroy which eventually remove the queue from door bell and set userq_mgr = NULL. Thread2: An interrupt might have scheduled the hang_detect_work which still need userq_mgr to be valid but could get an NULL ptrs. To fix that make sure we cancel the hang_detect_work again before setting userq_mgr to NULL. Along with that we also need all the queue va to remain valid till we could be running anything on the queue and hence moving the userq_va post hang_detect handler is cancelled. Signed-off-by: Sunil Khatri <sunil.khatri@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/linux/workqueue_api.h')
0 files changed, 0 insertions, 0 deletions