]> git.proxmox.com Git - mirror_ubuntu-kernels.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 21:15:54 +0000 (16:15 -0500)
commitea6c66449692399005f975b69c72a9e1797871f2
tree8f581caa31e092850958d43bcd10fad208eb6247
parent2c1f19b3272c0c09184b1cce592a91dc34a83506
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