diff options
author | Felix Kuehling <Felix.Kuehling@amd.com> | 2018-07-12 05:32:44 +0300 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@gmail.com> | 2018-07-12 05:32:44 +0300 |
commit | efeaed4d98eb4dc9ce01e1dca6d3778d180b272c (patch) | |
tree | c86bc91ff25f05acbc6071d8cb7df8e529ccf91b /drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c | |
parent | 0337976f40b0a9605c24797762b95b3414619d71 (diff) | |
download | linux-efeaed4d98eb4dc9ce01e1dca6d3778d180b272c.tar.xz |
drm/amdkfd: Reliably prevent reclaim-FS while holding DQM lock
This is needed to prevent deadlocks when MMU notifiers run in
reclaim-FS context and take the DQM lock for userptr evictions.
Previously this was done by making all memory allocations under
DQM locks GFP_NOIO. This is error prone. Using
memalloc_nofs_save/restore will reliably affect all memory
allocations anywhere in the kernel while the DQM lock is held.
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c')
0 files changed, 0 insertions, 0 deletions