OSDN Git Service

drm/amdkfd: Fix a circular lock dependency
authorFelix Kuehling <Felix.Kuehling@amd.com>
Wed, 24 Apr 2019 03:32:56 +0000 (23:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 May 2019 17:21:03 +0000 (12:21 -0500)
commit32cce8bc86032cc0c24086d6ce3ccf8e05e686cf
tree817ee45996815473350973851ff2f0239b68d53a
parent16631afff224475134124fb1982ba80365ec5640
drm/amdkfd: Fix a circular lock dependency

Fix a circular lock dependency exposed under userptr memory pressure.
The DQM lock is the only one taken inside the MMU notifier. We need
to make sure that no reclaim is done under this lock, and that
no other locks are taken under which reclaim is possible.

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