The patch titled Subject: mm-hugetlb-take-refcount-under-page-table-lock-in-follow_huge_pmd-fix has been added to the -mm tree. Its filename is mm-hugetlb-take-refcount-under-page-table-lock-in-follow_huge_pmd-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-hugetlb-take-refcount-under-page-table-lock-in-follow_huge_pmd-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-hugetlb-take-refcount-under-page-table-lock-in-follow_huge_pmd-fix.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: Naoya Horiguchi <n-horiguchi@xxxxxxxxxxxxx> Subject: mm-hugetlb-take-refcount-under-page-table-lock-in-follow_huge_pmd-fix Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/hugetlb.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff -puN mm/hugetlb.c~mm-hugetlb-take-refcount-under-page-table-lock-in-follow_huge_pmd-fix mm/hugetlb.c --- a/mm/hugetlb.c~mm-hugetlb-take-refcount-under-page-table-lock-in-follow_huge_pmd-fix +++ a/mm/hugetlb.c @@ -3690,6 +3690,14 @@ follow_huge_pud(struct mm_struct *mm, un #endif /* CONFIG_ARCH_WANT_GENERAL_HUGETLB */ +/* + * This function calls the architecture dependent variant follow_huge_pmd() + * with holding page table lock depending on FOLL_GET. + * Whether hugepage migration is supported or not, follow() can be called + * with FOLL_GET from do_move_page_to_node_array(), so we need do this in + * common code. + * Should be called under read mmap_sem. + */ struct page *follow_huge_pmd_lock(struct vm_area_struct *vma, unsigned long address, pmd_t *pmd, int flags) { _ Patches currently in -mm which might be from n-horiguchi@xxxxxxxxxxxxx are mm-memcontrol-rewrite-charge-api-fix-hugetlb-charging.patch mm-memcontrol-use-page-lists-for-uncharge-batching-fix-hugetlb-page-lru.patch mm-update-the-description-for-madvise_remove.patch mm-hwpoison-injectc-remove-unnecessary-null-test-before-debugfs_remove_recursive.patch hwpoison-fix-race-with-changing-page-during-offlining-v2.patch mm-hugetlb-generalize-writes-to-nr_hugepages.patch mm-hugetlb-generalize-writes-to-nr_hugepages-fix.patch mm-hugetlb-remove-hugetlb_zero-and-hugetlb_infinity.patch mm-fix-potential-infinite-loop-in-dissolve_free_huge_pages.patch mm-fix-potential-infinite-loop-in-dissolve_free_huge_pages-fix.patch mm-softdirty-respect-vm_softdirty-in-pte-holes.patch mm-hugetlb-take-refcount-under-page-table-lock-in-follow_huge_pmd.patch mm-hugetlb-take-refcount-under-page-table-lock-in-follow_huge_pmd-fix.patch mm-hugetlb-use-get_page_unless_zero-in-hugetlb_fault.patch mm-hugetlb-add-migration-entry-check-in-hugetlb_change_protection.patch mm-hugetlb-remove-unused-argument-of-follow_huge_pmdpud.patch mm-introduce-do_shared_fault-and-drop-do_fault-fix-fix.patch do_shared_fault-check-that-mmap_sem-is-held.patch linux-next.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html