mm-memcg-dont-periodically-flush-stats-when-memcg-is-disabled.patch removed from -mm tree
The quilt patch titled
Subject: mm: memcg: don't periodically flush stats when memcg is disabled
has been removed from the -mm tree. Its filename was
mm-memcg-dont-periodically-flush-stats-when-memcg-is-disabled.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: "T.J. Mercier" <[email protected]>
Subject: mm: memcg: don't periodically flush stats when memcg is disabled
Date: Fri, 26 Jan 2024 21:19:25 +0000
The root memcg is onlined even when memcg is disabled. When it's onlined a 2 second periodic stat flush is started, but no stat flushing is required when memcg is disabled because there can be no child memcgs. Most calls to flush memcg stats are avoided when memcg is disabled as a result of the mem_cgroup_disabled check added in 7d7ef0a4686a ("mm: memcg:
restore subtree stats flushing"), but the periodic flushing started in mem_cgroup_css_online is not. Skip it.
---
mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/memcontrol.c renamed from mm/memcontrol.c~mm-memcg-dont-periodically-flush-stats-when-memcg-is-disabled +1 -1
@@ -5621,7 +5621,7 @@ static int mem_cgroup_css_online(structif (alloc_shrinker_info (memcg)) goto offline_kmem; -if (unlikely (mem_cgroup_is_root (memcg))) +if (unlikely (mem_cgroup_is_root (memcg)) && !mem_cgroup_disabled ())queue_delayed_work (system_unbound_wq, &stats_flush_dwork,FLUSH_TIME );lru_gen_online_memcg (memcg);
_
Patches currently in -mm which might be from [email protected] are