drm/amdgpu: shrink critical section in amdgpu_amdkfd_gpuvm_free_memory_of_gpu
authorBernard Zhao <bernard@vivo.com>
Tue, 21 Apr 2020 06:48:18 +0000 (23:48 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 23 Apr 2020 19:39:53 +0000 (15:39 -0400)
commitfe158997c8b73ca5117e07ecfa94ec7d9acf7eb4
treef928d86ebbb2e98849b896cfd6f3e5bafcf3895c
parent6f81b2d047c59eb77cd04795a44245d6a52cdaec
drm/amdgpu: shrink critical section in amdgpu_amdkfd_gpuvm_free_memory_of_gpu

Reduce the mem->lock`s protected code area, no need to protect pr_debug.
This also simplifies error handling.

Signed-off-by: Bernard Zhao <bernard@vivo.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c