We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ea7ff1 commit f9bf6c0Copy full SHA for f9bf6c0
mm/hugetlb.c
@@ -5634,11 +5634,10 @@ static vm_fault_t hugetlb_no_page(struct mm_struct *mm,
5634
* here. Before returning error, get ptl and make
5635
* sure there really is no pte entry.
5636
*/
5637
- ptl = huge_pte_lock(h, mm, ptep);
5638
- ret = 0;
5639
- if (huge_pte_none(huge_ptep_get(ptep)))
+ if (hugetlb_pte_stable(h, mm, ptep, old_pte))
5640
ret = vmf_error(PTR_ERR(page));
5641
- spin_unlock(ptl);
+ else
+ ret = 0;
5642
goto out;
5643
}
5644
clear_huge_page(page, address, pages_per_huge_page(h));
0 commit comments