aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorJann Horn <[email protected]>2022-11-25 21:37:13 +0000
committerAndrew Morton <[email protected]>2022-11-30 22:49:42 +0000
commit2ba99c5e08812494bc57f319fb562f527d9bacd8 (patch)
tree2a2cdaaa8a0bd83cc2e1a1feb93c6772a681a3cd /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentmm/khugepaged: take the right locks for page table retraction (diff)
downloadkernel-2ba99c5e08812494bc57f319fb562f527d9bacd8.tar.gz
kernel-2ba99c5e08812494bc57f319fb562f527d9bacd8.zip
mm/khugepaged: fix GUP-fast interaction by sending IPI
Since commit 70cbc3cc78a99 ("mm: gup: fix the fast GUP race against THP collapse"), the lockless_pages_from_mm() fastpath rechecks the pmd_t to ensure that the page table was not removed by khugepaged in between. However, lockless_pages_from_mm() still requires that the page table is not concurrently freed. Fix it by sending IPIs (if the architecture uses semi-RCU-style page table freeing) before freeing/reusing page tables. Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Fixes: ba76149f47d8 ("thp: khugepaged") Signed-off-by: Jann Horn <[email protected]> Reviewed-by: Yang Shi <[email protected]> Acked-by: David Hildenbrand <[email protected]> Cc: John Hubbard <[email protected]> Cc: Peter Xu <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions