]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite6dbde83e92920ea50ff1d477f36eba5d2f28ef4
tree28fe35662508d89b2a3fd411bc380f3bc3acf839
parent2e5e19d7225dc229cec3be845f6b49c09d1b0deb
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