The patch titled Subject: mm, swap_cgroup: reschedule when neeed in swap_cgroup_swapoff() has been added to the -mm tree. Its filename is mm-swap_cgroup-reschedule-when-neeed-in-swap_cgroup_swapoff.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-swap_cgroup-reschedule-when-neeed-in-swap_cgroup_swapoff.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-swap_cgroup-reschedule-when-neeed-in-swap_cgroup_swapoff.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, swap_cgroup: reschedule when neeed in swap_cgroup_swapoff() We got need_resched() warnings in swap_cgroup_swapoff() because swap_cgroup_ctrl[type].length is particularly large. Reschedule when needed. Link: http://lkml.kernel.org/r/alpine.DEB.2.10.1704061315270.80559@xxxxxxxxxxxxxxxxxxxxxxxxx Signed-off-by: David Rientjes <rientjes@xxxxxxxxxx> Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Cc: Vladimir Davydov <vdavydov.dev@xxxxxxxxx> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/swap_cgroup.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN mm/swap_cgroup.c~mm-swap_cgroup-reschedule-when-neeed-in-swap_cgroup_swapoff mm/swap_cgroup.c --- a/mm/swap_cgroup.c~mm-swap_cgroup-reschedule-when-neeed-in-swap_cgroup_swapoff +++ a/mm/swap_cgroup.c @@ -201,6 +201,8 @@ void swap_cgroup_swapoff(int type) struct page *page = map[i]; if (page) __free_page(page); + if (!(i % SWAP_CLUSTER_MAX)) + cond_resched(); } vfree(map); } _ Patches currently in -mm which might be from rientjes@xxxxxxxxxx are mm-thp-fix-setting-of-defermadvise-thp-defrag-mode.patch mm-swap_cgroup-reschedule-when-neeed-in-swap_cgroup_swapoff.patch mm-vmstat-print-non-populated-zones-in-zoneinfo.patch mm-vmstat-suppress-pcp-stats-for-unpopulated-zones-in-zoneinfo.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