[Devel] [PATCH RHEL7 COMMIT] cgroup: Enable css_stacks debuging by default

Konstantin Khorenko khorenko at virtuozzo.com
Tue Jun 2 20:14:44 MSK 2020


The commit is pushed to "branch-rh7-3.10.0-1127.8.2.vz7.151.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-1127.8.2.vz7.151.10
------>
commit 34d9a5d6d22a330289b4ab889e93ffedfb81b889
Author: Andrey Ryabinin <aryabinin at virtuozzo.com>
Date:   Tue Jun 2 20:14:43 2020 +0300

    cgroup: Enable css_stacks debuging by default
    
    It's much more lightweight than the previous version, could be on
    by default. Replace css_stacks boot option with no_css_stacks
    to allow disabling the default
    
    https://jira.sw.ru/browse/PSBM-98148
    Fixes: 3b47ac65d9e06 ("cgroup, memcg: Rework css_stacks debugging.")
    
    Signed-off-by: Andrey Ryabinin <aryabinin at virtuozzo.com>
---
 kernel/cgroup.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 48853175b5a4b..fc3148d37610f 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -4192,7 +4192,7 @@ static int css_stacks_set(void *data, u64 val)
 DEFINE_SIMPLE_ATTRIBUTE(css_stacks_fops,
 		css_stacks_get, css_stacks_set, "%llu\n");
 
-int setup_css_stacks_cmd;
+int setup_css_stacks_cmd = 1;
 static int __init css_stacks_debugfs(void)
 {
 	void *ret;
@@ -4209,10 +4209,10 @@ late_initcall(css_stacks_debugfs);
 
 static int __init setup_css_stacks(char *str)
 {
-	setup_css_stacks_cmd = 1;
+	setup_css_stacks_cmd = 0;
 	return 1;
 }
-__setup("css_stacks", setup_css_stacks);
+__setup("no_css_stacks", setup_css_stacks);
 #endif
 
 static void init_cgroup_css(struct cgroup_subsys_state *css,


More information about the Devel mailing list