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

Submitted by Konstantin Khorenko on Oct. 15, 2019, 3:57 p.m.

Details

Message ID 201910151557.x9FFvC7g020005@finist-ce7.sw.ru
State New
Series "mm/memcg: restore lost css_put() in memcg_kmem_cache_create_func()"
Headers show

Commit Message

Konstantin Khorenko Oct. 15, 2019, 3:57 p.m.
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@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@virtuozzo.com>
---
 mm/memcontrol.c | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

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);
 }