The patch titled Subject: mm, thp: drop page_table_lock to uncharge memcg pages has been added to the -mm tree. Its filename is mm-thp-drop-page_table_lock-to-uncharge-memcg-pages.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: David Rientjes <rientjes@xxxxxxxxxx> Subject: mm, thp: drop page_table_lock to uncharge memcg pages mm->page_table_lock is hotly contested for page fault tests and isn't necessary to do mem_cgroup_uncharge_page() in do_huge_pmd_wp_page(). Signed-off-by: David Rientjes <rientjes@xxxxxxxxxx> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> Cc: Andrea Arcangeli <aarcange@xxxxxxxxxx> Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/huge_memory.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN mm/huge_memory.c~mm-thp-drop-page_table_lock-to-uncharge-memcg-pages mm/huge_memory.c --- a/mm/huge_memory.c~mm-thp-drop-page_table_lock-to-uncharge-memcg-pages +++ a/mm/huge_memory.c @@ -973,8 +973,10 @@ int do_huge_pmd_wp_page(struct mm_struct spin_lock(&mm->page_table_lock); put_page(page); if (unlikely(!pmd_same(*pmd, orig_pmd))) { + spin_unlock(&mm->page_table_lock); mem_cgroup_uncharge_page(new_page); put_page(new_page); + goto out; } else { pmd_t entry; VM_BUG_ON(!PageHead(page)); _ Subject: Subject: mm, thp: drop page_table_lock to uncharge memcg pages Patches currently in -mm which might be from rientjes@xxxxxxxxxx are mm-hugetlb-fix-warning-in-alloc_huge_page-dequeue_huge_page_vma.patch linux-next.patch mm-memory_failure-let-the-compiler-add-the-function-name.patch mm-mempolicyc-use-enum-value-mpol_rebind_once-instead-of-0-in-mpol_rebind_policy.patch mm-hugetlbc-cleanup-to-use-long-vars-instead-of-int-in-region_count.patch mm-thp-remove-unnecessary-ret-variable.patch mm-thp-allow-fallback-when-pte_alloc_one-fails-for-huge-pmd.patch mm-vmstatc-remov-debug-fs-entries-on-failure-of-file-creation-and-made-extfrag_debug_root-dentry-local.patch thp-memcg-split-hugepage-for-memcg-oom-on-cow.patch mm-thp-drop-page_table_lock-to-uncharge-memcg-pages.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