]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu/userq: amdgpu_userq_vm_validate does not need userq mutex
authorSunil Khatri <sunil.khatri@amd.com>
Tue, 24 Mar 2026 14:58:54 +0000 (20:28 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 30 Mar 2026 18:31:55 +0000 (14:31 -0400)
commitde95eda05f193e051bc7689805f152d075157bd0
tree91ff17be72bfef4eeb69b92c2cb932a7e807582c
parentde1ef4ffd70e1d15f0bf584fd22b1f28cbd5e2ec
drm/amdgpu/userq: amdgpu_userq_vm_validate does not need userq mutex

amdgpu_userq_vm_validate function does not need userq_mutex and exec
lock is good enough to locking all bos and updating the eviction fence.

Also since we only need userq_mutex for amdgpu_userq_restore_all
so move the locks in the function itself.

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>
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c