Message ID | 20210117204436.awIpnPC-N%akpm@linux-foundation.org |
---|---|
State | Superseded |
Headers | show |
Series | [to-be-updated] mm-hugetlb-fix-a-race-between-isolating-and-freeing-page.patch removed from -mm tree | expand |
--- a/mm/hugetlb.c~mm-hugetlb-fix-a-race-between-isolating-and-freeing-page +++ a/mm/hugetlb.c @@ -5581,9 +5581,9 @@ bool isolate_huge_page(struct page *page { bool ret = true; - VM_BUG_ON_PAGE(!PageHead(page), page); spin_lock(&hugetlb_lock); - if (!page_huge_active(page) || !get_page_unless_zero(page)) { + if (!PageHeadHuge(page) || !page_huge_active(page) || + !get_page_unless_zero(page)) { ret = false; goto unlock; }