drm/amdgpu: move lockdep assert to the right place.
authorChristian König <christian.koenig@amd.com>
Fri, 4 Feb 2022 08:42:22 +0000 (09:42 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Feb 2022 23:03:50 +0000 (18:03 -0500)
commitd7d7ddc15672940be0dbbe03e016c5bb617256b8
tree83087d808327de1a6a51e6bf995e9024eef93ebe
parent66d58bf73ba17ac45fca79f2e5e26870cc224ee3
drm/amdgpu: move lockdep assert to the right place.

Since newly added BOs don't have any mappings it's ok to add them
without holding the VM lock. Only when we add per VM BOs the lock is
mandatory.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reported-by: Bhardwaj, Rajneesh <Rajneesh.Bhardwaj@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c