Skip to content

Commit

Permalink
Fix hugepage unmap issue by using flush_tlb_kernel_range() instead of…
Browse files Browse the repository at this point in the history
… tlb_flush_pmd_range()
  • Loading branch information
ccc007ccc committed Feb 8, 2024
1 parent a2e84fb commit f63fd7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mm/hugetlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -3452,7 +3452,8 @@ void __unmap_hugepage_range(struct mmu_gather *tlb, struct vm_area_struct *vma,
ptl = huge_pte_lock(h, mm, ptep);
if (huge_pmd_unshare(mm, &address, ptep)) {
spin_unlock(ptl);
tlb_flush_pmd_range(tlb, address & PUD_MASK, PUD_SIZE);
// tlb_flush_pmd_range(tlb, address & PUD_MASK, PUD_SIZE);
flush_tlb_kernel_range(address & PUD_MASK, (address & PUD_MASK) + PUD_SIZE);
force_flush = true;
continue;
}
Expand Down

0 comments on commit f63fd7a

Please sign in to comment.