diff options
author | Philip Yang <Philip.Yang@amd.com> | 2022-01-24 16:40:44 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-01-27 15:47:34 -0500 |
commit | ac7c48c0cce00d03b3c95fddcccb0a45257e33e3 (patch) | |
tree | fb432feb320992b34964a368c66b375a0b0e8b98 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | b6dca949b88ee69561fc4ed853ab7a2ae13d842f (diff) | |
download | linux-ac7c48c0cce00d03b3c95fddcccb0a45257e33e3.tar.gz linux-ac7c48c0cce00d03b3c95fddcccb0a45257e33e3.tar.bz2 linux-ac7c48c0cce00d03b3c95fddcccb0a45257e33e3.zip |
drm/amdkfd: Don't take process mutex for svm ioctls
SVM ioctls take proper svms->lock to handle race conditions, don't need
take process mutex to serialize ioctls. This also fixes circular locking
warning:
WARNING: possible circular locking dependency detected
Possible unsafe locking scenario:
CPU0 CPU1
---- ----
lock((work_completion)(&svms->deferred_list_work));
lock(&process->mutex);
lock((work_completion)(&svms->deferred_list_work));
lock(&process->mutex);
*** DEADLOCK ***
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions