[Devel] [PATCH RH9 02/12] sched: disable dumping cfs info on sysrq trigger

Alexander Mikhalitsyn alexander.mikhalitsyn at virtuozzo.com
Thu Sep 23 14:31:26 MSK 2021


From: Kirill Tkhai <ktkhai at 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 <vdavydov at virtuozzo.com>
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>

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

(cherry picked from commit e8da25d0fa103932b782bdc59e99013f610badfc)
Signed-off-by: Alexander Mikhalitsyn <alexander.mikhalitsyn at 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



More information about the Devel mailing list