Commits
Andrey Ryabinin authored and Konstantin Khorenko committed 77c54cbf9ae
mm/memcontrol: don't reparent forever if counter leaked. In case of leaked memcg->memory counter mem_cgroup_reparent_charges() may stuck forever under global cgroup_mutex making the whole system unusable. I don't see reson for 'while ((memory - kmem) > 0)' loop, IMO memory should be equal to kmem after the first iteration. And if not it's a leak, but just in case make several attempts. https://pmc.acronis.com/browse/VSTOR-24241 Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>