]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix race condition in MMU notifier release
authorFelix Kuehling <Felix.Kuehling@amd.com>
Thu, 14 Jan 2016 05:35:08 +0000 (00:35 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Feb 2016 22:17:14 +0000 (17:17 -0500)
commit986735a90414f34e23761a82e66b97ac5d16d0b4
treeefe50fcd92ab123100bc50ad0e6e62475b0d7316
parent10a50112a8395dc9ac8dda527aaacb27b26ea140
drm/amdgpu: Fix race condition in MMU notifier release

The release notifier can get called a second time from
mmu_notifier_unregister depending on a race between
__mmu_notifier_release and amdgpu_mn_destroy. Use
mmu_notifier_unregister_no_release to avoid this.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c