Skip to contentSkip to conversation

mm-hugetlb-use-get_page_foll-in-follow_hugetlb_page.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jan 22, 2014

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: [merged] mm-hugetlb-use-get_page_foll-in-follow_hugetlb_page.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]
From: [email protected]
Date: Wed, 22 Jan 2014 12:12:19 -0800

The patch titled
Subject: mm: hugetlb: use get_page_foll() in follow_hugetlb_page()
has been removed from the -mm tree. Its filename was
mm-hugetlb-use-get_page_foll-in-follow_hugetlb_page.patch

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

------------------------------------------------------
From: Andrea Arcangeli <[email protected]>
Subject: mm: hugetlb: use get_page_foll() in follow_hugetlb_page()

get_page_foll() is more optimal and is always safe to use under the PT lock. More so for hugetlbfs as there's no risk of race conditions with split_huge_page regardless of the PT lock.

Cc Pravin Shelar <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Ben Hutchings <[email protected]>
Cc Christoph Lameter <[email protected]>
Cc Johannes Weiner <[email protected]>
Cc Mel Gorman <[email protected]>
Cc Rik van Riel <[email protected]>
Cc Andi Kleen <[email protected]>
Cc Minchan Kim <[email protected]>

---

 mm/hugetlb.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/hugetlb.c renamed from mm/hugetlb.c~mm-hugetlb-use-get_page_foll-in-follow_hugetlb_page +1 -1
diff -puN mm/hugetlb.c~mm-hugetlb-use-get_page_foll-in-follow_hugetlb_page mm/hugetlb.c
@@ -3079,7 +3079,7 @@ long follow_hugetlb_page(struct mm_struc
 same_page:
 		if (pages) {
 			pages[i] = mem_map_offset(page, pfn_offset);
-			get_page(pages[i]);
+			get_page_foll(pages[i]);
 		}
 
 		if (vmas)

_

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

origin.patch mm-munlock-fix-potential-race-with-thp-page-split.patch mm-fix-the-theoretical-compound_lock-vs-prep_new_page-race.patch