diff options
| author | Mukul Joshi <[email protected]> | 2022-05-31 18:39:36 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-06-09 13:45:35 +0000 |
| commit | fe1f05df5919c67c3add49efb55e251a8d78ee4e (patch) | |
| tree | 1653079f117524d35dbe49328a94cbb3e933bd5d /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | |
| parent | drm/amdgpu: configure the doorbell settings for sdma on non-AID0 (diff) | |
| download | kernel-fe1f05df5919c67c3add49efb55e251a8d78ee4e.tar.gz kernel-fe1f05df5919c67c3add49efb55e251a8d78ee4e.zip | |
drm/amdkfd: Rework kfd_locked handling
Currently, even if kfd_locked is set, a process is first
created and then removed to work around a race condition
in updating kfd_locked flag. Rework kfd_locked handling to
ensure no processes is created if kfd_locked is set. This
is achieved by updating kfd_locked under kfd_processes_mutex.
With this there is no need for kfd_locked to be an atomic
counter. Instead, it can be a regular integer.
Signed-off-by: Mukul Joshi <[email protected]>
Reviewed-by: Felix Kuehling <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions
