The patch titled Subject: mm-dont-be-stuck-to-rmap-lock-on-reclaim-path-fix has been added to the -mm mm-unstable branch. Its filename is mm-dont-be-stuck-to-rmap-lock-on-reclaim-path-fix.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-dont-be-stuck-to-rmap-lock-on-reclaim-path-fix.patch This patch will later appear in the mm-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: Minchan Kim <minchan@xxxxxxxxxx> Subject: mm-dont-be-stuck-to-rmap-lock-on-reclaim-path-fix Date: Wed, 4 May 2022 23:11:04 -0700 add comment, per Matthew Link: https://lkml.kernel.org/r/YnNqeB5tUf6LZ57b@xxxxxxxxxx Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Cc: Suren Baghdasaryan <surenb@xxxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxx> Cc: John Dias <joaodias@xxxxxxxxxx> Cc: Tim Murray <timmurray@xxxxxxxxxx> Cc: Matthew Wilcox <willy@xxxxxxxxxxxxx> Cc: Vladimir Davydov <vdavydov.dev@xxxxxxxxx> Cc: Martin Liu <liumartin@xxxxxxxxxx> Cc: Minchan Kim <minchan@xxxxxxxxxx> Cc: Matthew Wilcox <willy@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/page_idle.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/mm/page_idle.c~mm-dont-be-stuck-to-rmap-lock-on-reclaim-path-fix +++ a/mm/page_idle.c @@ -87,6 +87,10 @@ static void page_idle_clear_pte_refs(str { struct folio *folio = page_folio(page); + /* + * Since rwc.try_lock is unused, rwc is effectively immutable, so we + * can make it static to save some cycles and stack. + */ static struct rmap_walk_control rwc = { .rmap_one = page_idle_clear_pte_refs_one, .anon_lock = folio_lock_anon_vma_read, _ Patches currently in -mm which might be from minchan@xxxxxxxxxx are mm-dont-be-stuck-to-rmap-lock-on-reclaim-path.patch mm-dont-be-stuck-to-rmap-lock-on-reclaim-path-fix.patch