[Devel] [PATCH RHEL7 COMMIT] mm/memcg: restore lost css_put() in memcg_kmem_cache_create_func()

Konstantin Khorenko khorenko at virtuozzo.com
Tue Oct 15 18:57:14 MSK 2019


The commit is pushed to "branch-rh7-3.10.0-1062.1.2.vz7.114.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-1062.1.2.vz7.114.5
------>
commit a12399732ed88edf85ecea7764bdc6df3a6f2ec0
Author: Andrey Ryabinin <aryabinin at virtuozzo.com>
Date:   Tue Oct 15 18:57:12 2019 +0300

    mm/memcg: restore lost css_put() in memcg_kmem_cache_create_func()
    
    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 <aryabinin at virtuozzo.com>
---
 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);
 }
 



More information about the Devel mailing list