OSDN Git Service

drm/amdgpu: Avoid reclaim fs while eviction lock
authorAlex Sierra <alex.sierra@amd.com>
Tue, 17 Dec 2019 22:57:30 +0000 (16:57 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Jan 2020 18:33:16 +0000 (13:33 -0500)
commita269e44989f3e77fb2ebfb995b8d501924ed07e2
treeb9d3d82cec052d8b7599a5cd1e39c8cc4446a208
parenta9ffe2a9833835b157a53dcc4d725f71426f55ff
drm/amdgpu: Avoid reclaim fs while eviction lock

[Why]
Avoid reclaim filesystem while eviction lock is held called from
MMU notifier.

[How]
Setting PF_MEMALLOC_NOFS flags while eviction mutex is locked.
Using memalloc_nofs_save / memalloc_nofs_restore API.

Signed-off-by: Alex Sierra <alex.sierra@amd.com>
Reviewed-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
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h