From: Kirill Tkhai <ktk...@virtuozzo.com>

This results in soft lockups, because it writes too much data to
console. At the same time information it shows is only useful for sched
debugging and can be obtained via /proc/sched_debug anyway. Besides, it
is disabled in PCS6. So disable it in vz7 either.

https://jira.sw.ru/browse/PSBM-41140

Signed-off-by: Vladimir Davydov <vdavy...@virtuozzo.com>
Signed-off-by: Kirill Tkhai <ktk...@virtuozzo.com>

https://jira.sw.ru/browse/PSBM-133986

(cherry picked from commit e8da25d0fa103932b782bdc59e99013f610badfc)
Signed-off-by: Alexander Mikhalitsyn <alexander.mikhalit...@virtuozzo.com>
---
 kernel/sched/core.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 2a9ca0492df4..bdff24034916 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -8278,8 +8278,16 @@ void show_state_filter(unsigned int state_filter)
        }
 
 #ifdef CONFIG_SCHED_DEBUG
+#ifndef CONFIG_VE
+       /*
+        * This results in soft lockups, because it writes too much data to
+        * console. At the same time information it shows is only useful for
+        * sched debugging and can be obtained via /proc/sched_debug anyway.
+        * So disable it.
+        */
        if (!state_filter)
                sysrq_sched_debug_show();
+#endif
 #endif
        rcu_read_unlock();
        /*
-- 
2.31.1

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to