From: akpm@linux-foundation.org Subject: + mm-hugetlb-use-get_page_foll-in-follow_hugetlb_page.patch added to -mm tree Date: Tue, 19 Nov 2013 15:14:35 -0800 Message-ID: <528bf0db.PvTHuO+LBsOPd/v2%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:42450 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753693Ab3KSXOg (ORCPT ); Tue, 19 Nov 2013 18:14:36 -0500 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: mm-commits@vger.kernel.org, riel@redhat.com, pshelar@nicira.com, minchan@kernel.org, mgorman@suse.de, khalid.aziz@oracle.com, jweiner@redhat.com, gregkh@linuxfoundation.org, cl@linux.com, bhutchings@solarflare.com, andi@firstfloor.org, aarcange@redhat.com Subject: + mm-hugetlb-use-get_page_foll-in-follow_hugetlb_page.patch added to -mm tree To: aarcange@redhat.com,andi@firstfloor.org,bhutchings@solarflare.com,cl@linux.com,gregkh@linuxfoundation.org,jweiner@redhat.com,khalid.aziz@oracle.com,mgorman@suse.de,minchan@kernel.org,pshelar@nicira.com,riel@redhat.com From: akpm@linux-foundation.org Date: Tue, 19 Nov 2013 15:14:35 -0800 The patch titled Subject: mm: hugetlb: use get_page_foll() in follow_hugetlb_page() has been added to the -mm tree. Its filename is mm-hugetlb-use-get_page_foll-in-follow_hugetlb_page.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-hugetlb-use-get_page_foll-in-follow_hugetlb_page.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-hugetlb-use-get_page_foll-in-follow_hugetlb_page.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Andrea Arcangeli 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. Signed-off-by: Andrea Arcangeli Tested-by: Khalid Aziz Cc: Pravin Shelar Cc: Greg Kroah-Hartman Cc: Ben Hutchings Cc: Christoph Lameter Cc: Johannes Weiner Cc: Mel Gorman Cc: Rik van Riel Cc: Andi Kleen Cc: Minchan Kim Signed-off-by: Andrew Morton --- mm/hugetlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN mm/hugetlb.c~mm-hugetlb-use-get_page_foll-in-follow_hugetlb_page mm/hugetlb.c --- a/mm/hugetlb.c~mm-hugetlb-use-get_page_foll-in-follow_hugetlb_page +++ a/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 aarcange@redhat.com are origin.patch mm-thp-give-transparent-hugepage-code-a-separate-copy_page.patch mm-thp-give-transparent-hugepage-code-a-separate-copy_page-fix.patch mm-hugetlbfs-fix-hugetlbfs-optimization.patch mm-hugetlb-use-get_page_foll-in-follow_hugetlb_page.patch mm-tail-page-refcounting-optimization-for-slab-and-hugetlbfs.patch mm-swapc-reorganize-put_compound_page.patch mm-hugetlbc-simplify-pageheadhuge-and-pagehuge.patch