Restore lost css_put() in memcg_kmem_cache_create_func() otherwise
mem cgroup cannot be destroyed.

https://jira.sw.ru/browse/PSBM-98444
Signed-off-by: Andrey Ryabinin <[email protected]>
---
 mm/memcontrol.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index d499deb94453..74696414874e 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -3636,6 +3636,7 @@ static void memcg_kmem_cache_create_func(struct 
work_struct *w)
 
        memcg_create_kmem_cache(memcg, cachep);
 
+       css_put(&memcg->css);
        kfree(cw);
 }
 
-- 
2.21.0

_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to