drm/amdgpu: further optimize amdgpu_vm_handle_moved
commit789f3317ed33e34fa97c8918c075c68a62e51a4d
authorChristian König <christian.koenig@amd.com>
Thu, 19 Apr 2018 09:08:24 +0000 (19 11:08 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 24 May 2018 15:07:53 +0000 (24 10:07 -0500)
treeb0dd192762bdc382766c88be337cd8123c12f307
parent91ccdd24a1955dbec97a6d61322be214b7de1974
drm/amdgpu: further optimize amdgpu_vm_handle_moved

Splice the moved list to a local one to avoid taking the lock over and
over again.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c