The patch titled Subject: revert "mm: align larger anonymous mappings on THP boundaries" has been added to the -mm mm-hotfixes-unstable branch. Its filename is revert-mm-align-larger-anonymous-mappings-on-thp-boundaries.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/revert-mm-align-larger-anonymous-mappings-on-thp-boundaries.patch This patch will later appear in the mm-hotfixes-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm 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/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: revert "mm: align larger anonymous mappings on THP boundaries" Date: Thu Dec 1 01:22:56 PM PST 2022 Several testers are seeing large slowdowns from this commit. The reasons for this are unclear. Revert it from 6.1-rcX so this can be better examined. Fixes: f35b5d7d676e ("mm: align larger anonymous mappings on THP boundaries") Reported-by: kernel test robot <yujie.liu@xxxxxxxxx> Reported-by: Nathan Chancellor <nathan@xxxxxxxxxx> Reported-by: Thorsten Leemhuis <regressions@xxxxxxxxxxxxx> Cc: Feng Tang <feng.tang@xxxxxxxxx> Cc: "Huang, Ying" <ying.huang@xxxxxxxxx> Cc: Matthew Wilcox <willy@xxxxxxxxxxxxx> Cc: Rik van Riel <riel@xxxxxxxxxxx> Cc: Xing Zhengjun <zhengjun.xing@xxxxxxxxxxxxxxx> Cc: Yang Shi <shy828301@xxxxxxxxx> Cc: "Yin, Fengwei" <fengwei.yin@xxxxxxxxx> Cc: Yujie Liu <yujie.liu@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/mmap.c | 3 --- 1 file changed, 3 deletions(-) --- a/mm/mmap.c~revert-mm-align-larger-anonymous-mappings-on-thp-boundaries +++ a/mm/mmap.c @@ -1779,9 +1779,6 @@ get_unmapped_area(struct file *file, uns */ pgoff = 0; get_area = shmem_get_unmapped_area; - } else if (IS_ENABLED(CONFIG_TRANSPARENT_HUGEPAGE)) { - /* Ensures that larger anonymous mappings are THP aligned. */ - get_area = thp_get_unmapped_area; } addr = get_area(file, addr, len, pgoff, flags); _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are revert-mm-align-larger-anonymous-mappings-on-thp-boundaries.patch mm-gup-remove-foll_migration-fix.patch mm-memremap_pages-replace-zone_device_page_init-with-pgmap_request_folios-fix.patch mm-memremap-introduce-pgmap_request_folio-using-pgmap-offsets-fix.patch mm-memremap-introduce-pgmap_request_folio-using-pgmap-offsets-fix-2.patch