aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorFelix Kuehling <[email protected]>2022-04-12 16:24:49 -0400
committerAlex Deucher <[email protected]>2022-04-14 15:29:13 -0400
commit250e64a3f06c42e993e7b8c6f727d43b5b9f8c96 (patch)
tree469d936f31dc90ae9a295ffcf0e9e5bda8501251 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parent9e12b5947bbaa74db32e24d77ebf3bd71015970c (diff)
drm/amdkfd: fix race condition in kfd_wait_on_events
Add the waiters to the wait queue during initialization, while holding the event spinlock. Otherwise the waiter will not get activated if the event signals before being added to the wait queue. Signed-off-by: Felix Kuehling <[email protected]> Reviewed-by: Philip Yang<[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions