Skip to contentSkip to conversation

memcg-lost-css_put-in-memcg_expand_shrinker_maps.patch removed from -mm tree

merged [email protected] 1 participant 1 message Feb 24, 2020 Stable branch

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm/memcontrol.c: lost css_put in memcg_expand_shrinker_maps()
has been removed from the -mm tree. Its filename was
memcg-lost-css_put-in-memcg_expand_shrinker_maps.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Vasily Averin <[email protected]>
Subject: mm/memcontrol.c: lost css_put in memcg_expand_shrinker_maps()

for_each_mem_cgroup() increases css reference counter for memory cgroup and requires to use mem_cgroup_iter_break() if the walk is cancelled.

Fixes 0a4465d34028 ("mm, memcg: assign memcg-aware shrinkers bitmap to memcg")
Cc Johannes Weiner <[email protected]>
Cc Vladimir Davydov <[email protected]>

---

 mm/memcontrol.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
mm/memcontrol.c renamed from mm/memcontrol.c~memcg-lost-css_put-in-memcg_expand_shrinker_maps +3 -1
@@ -409,8 +409,10 @@ int memcg_expand_shrinker_maps(int new_i
 		if (mem_cgroup_is_root(memcg))
 			continue;
 		ret = memcg_expand_one_shrinker_map(memcg, size, old_size);
-		if (ret)
+		if (ret) {
+			mem_cgroup_iter_break(NULL, memcg);
 			goto unlock;
+		}
 	}
 unlock:
 	if (!ret)

_

Patches currently in -mm which might be from [email protected] are