OSDN Git Service

drm/amdkfd: process_info lock not needed for svm
authorPhilip Yang <Philip.Yang@amd.com>
Mon, 29 Nov 2021 17:33:05 +0000 (12:33 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Dec 2021 22:09:58 +0000 (17:09 -0500)
commit3abfe30d803e62cc75dec254eefab3b04d69219b
tree28fe35662508d89b2a3fd411bc380f3bc3acf839
parent428890a3fec131521cc59aac0d3c48bde9d76b7b
drm/amdkfd: process_info lock not needed for svm

process_info->lock is used to protect kfd_bo_list, vm_list_head, n_vms
and userptr valid/inval list, svm_range_restore_work and
svm_range_set_attr don't access those, so do not need to take
process_info lock. This will avoid potential circular locking issue.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c