mm-hugetlb-protect-reserved-pages-when-soft-offlining-a-hugepage.patch removed from -mm tree
Subsystems (2)
[email protected]
maintainerSubject: [merged] mm-hugetlb-protect-reserved-pages-when-soft-offlining-a-hugepage.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 12 Sep 2013 12:43:59 -0700
The patch titled
Subject: mm, hugetlb: protect reserved pages when soft offlining a hugepage
has been removed from the -mm tree. Its filename was
mm-hugetlb-protect-reserved-pages-when-soft-offlining-a-hugepage.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Joonsoo Kim <[email protected]>
Subject: mm, hugetlb: protect reserved pages when soft offlining a hugepage
Don't use the reserve pool when soft offlining a hugepage. Check we have free pages outside the reserve pool before we dequeue the huge page. Otherwise, we can steal other's reserve page.
---
mm/hugetlb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
mm/hugetlb.c renamed from mm/hugetlb.c~mm-hugetlb-protect-reserved-pages-when-soft-offlining-a-hugepage +3 -2
@@ -955,10 +955,11 @@ static struct page *alloc_buddy_huge_pag*/ struct page *alloc_huge_page_node (struct hstate *h,int nid) { -struct page *page; +struct page *page =NULL ;spin_lock (&hugetlb_lock); - page =dequeue_huge_page_node (h, nid); +if (h->free_huge_pages - h->resv_huge_pages >0 ) + page =dequeue_huge_page_node (h, nid);spin_unlock (&hugetlb_lock);if (!page)
_
Patches currently in -mm which might be from [email protected] are
origin.patch