The patch titled Subject: memcg-infrastructure-to-flush-memcg-stats-v5 has been added to the -mm tree. Its filename is memcg-infrastructure-to-flush-memcg-stats-v5.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/memcg-infrastructure-to-flush-memcg-stats-v5.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/memcg-infrastructure-to-flush-memcg-stats-v5.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/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Shakeel Butt <shakeelb@xxxxxxxxxx> Subject: memcg-infrastructure-to-flush-memcg-stats-v5 fix sleep-in-wrong context bug Link: https://lkml.kernel.org/r/20210716212137.1391164-2-shakeelb@xxxxxxxxxx Signed-off-by: Shakeel Butt <shakeelb@xxxxxxxxxx> Reported-by: Yang Yingliang <yangyingliang@xxxxxxxxxx> Reported-by: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx> Cc: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> Cc: Hillf Danton <hdanton@xxxxxxxx> Cc: Huang Ying <ying.huang@xxxxxxxxx> Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxxxx> Cc: Michal Koutný <mkoutny@xxxxxxxx> Cc: Muchun Song <songmuchun@xxxxxxxxxxxxx> Cc: Roman Gushchin <guro@xxxxxx> Cc: Tejun Heo <tj@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/memcontrol.c~memcg-infrastructure-to-flush-memcg-stats-v5 +++ a/mm/memcontrol.c @@ -5358,7 +5358,7 @@ void mem_cgroup_flush_stats(void) if (!spin_trylock(&stats_flush_lock)) return; - cgroup_rstat_flush(root_mem_cgroup->css.cgroup); + cgroup_rstat_flush_irqsafe(root_mem_cgroup->css.cgroup); spin_unlock(&stats_flush_lock); } _ Patches currently in -mm which might be from shakeelb@xxxxxxxxxx are memcg-switch-lruvec-stats-to-rstat.patch memcg-infrastructure-to-flush-memcg-stats.patch memcg-infrastructure-to-flush-memcg-stats-v5.patch