Skip to contentSkip to conversation

mm-hugetlb-correct-missing-private-flag-clearing.patch removed from -mm tree

merged [email protected] 1 participant 1 message Oct 17, 2013

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: [merged] mm-hugetlb-correct-missing-private-flag-clearing.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 17 Oct 2013 11:13:01 -0700

The patch titled
Subject: mm/hugetlb.c: correct missing private flag clearing
has been removed from the -mm tree. Its filename was
mm-hugetlb-correct-missing-private-flag-clearing.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Joonsoo Kim <[email protected]>
Subject: mm/hugetlb.c: correct missing private flag clearing

We should clear the page's private flag when returing the page to the hugepage pool. Otherwise, marked hugepage can be allocated to the user who tries to allocate the non-reserved hugepage. If this user fail to map this hugepage, he would try to return the page to the hugepage pool. Since this page has a private flag, resv_huge_pages would mistakenly increase. This patch fixes this situation.

Cc Rik van Riel <[email protected]>
Cc Mel Gorman <[email protected]>
Cc Michal Hocko <[email protected]>
Cc "Aneesh Kumar K.V" <[email protected]>
Cc KAMEZAWA Hiroyuki <[email protected]>
Cc Hugh Dickins <[email protected]>
Cc Davidlohr Bueso <[email protected]>
Cc David Gibson <[email protected]>
Cc Wanpeng Li <[email protected]>
Cc Naoya Horiguchi <[email protected]>
Cc Hillf Danton <[email protected]>

---

 mm/hugetlb.c |    1 +
 1 file changed, 1 insertion(+)
mm/hugetlb.c renamed from mm/hugetlb.c~mm-hugetlb-correct-missing-private-flag-clearing +1 -0
diff -puN mm/hugetlb.c~mm-hugetlb-correct-missing-private-flag-clearing mm/hugetlb.c
@@ -653,6 +653,7 @@ static void free_huge_page(struct page *
 	BUG_ON(page_count(page));
 	BUG_ON(page_mapcount(page));
 	restore_reserve = PagePrivate(page);
+	ClearPagePrivate(page);
 
 	spin_lock(&hugetlb_lock);
 	hugetlb_cgroup_uncharge_page(hstate_index(h),

_

Patches currently in -mm which might be from [email protected] are

origin.patch
mm-vmalloc-dont-set-area-caller-twice.patch mm-vmalloc-fix-show-vmap_area-information-race-with-vmap_area-tear-down.patch mm-vmalloc-revert-mm-vmallocc-check-vm_uninitialized-flag-in-s_show-instead-of-show_numa_info.patch revert-mm-vmallocc-emit-the-failure-message-before-return.patch