drm/amdkfd: Fix recursive lock warnings
authorFelix Kuehling <Felix.Kuehling@amd.com>
Thu, 11 Mar 2021 02:42:01 +0000 (21:42 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 03:30:18 +0000 (23:30 -0400)
commit7816e4a98ce3bc7c562807240b4f14171e177420
treebb51d4c470037fd059f7d6c2fcaf27b97df8a00f
parent970fd19764349081d8fcb1ce816f7c75907b9d54
drm/amdkfd: Fix recursive lock warnings

memalloc_nofs_save/restore are no longer sufficient to prevent recursive
lock warnings when holding locks that can be taken in MMU notifiers. Use
memalloc_noreclaim_save/restore instead.

Fixes: f920e413ff9c ("mm: track mmu notifiers in fs_reclaim_acquire/release")
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c