Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753624AbdFSShZ (ORCPT + 2 others); Mon, 19 Jun 2017 14:37:25 -0400 Received: from wtarreau.pck.nerim.net ([62.212.114.60]:52500 "EHLO 1wt.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753588AbdFSShU (ORCPT ); Mon, 19 Jun 2017 14:37:20 -0400 From: Willy Tarreau To: linux-kernel@vger.kernel.org, stable@vger.kernel.org, linux@roeck-us.net Cc: Rabin Vincent , Linus Torvalds , Peter Zijlstra , Steven Rostedt , Thomas Gleixner , Ingo Molnar , Nikolay Borisov , Jiri Slaby , Willy Tarreau Subject: [PATCH 3.10 142/268] sched/debug: Don't dump sched debug info in SysRq-W Date: Mon, 19 Jun 2017 20:30:41 +0200 Message-Id: <1497897167-14556-143-git-send-email-w@1wt.eu> X-Mailer: git-send-email 2.8.0.rc2.1.gbe9624a In-Reply-To: <1497897167-14556-1-git-send-email-w@1wt.eu> References: <1497897167-14556-1-git-send-email-w@1wt.eu> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Rabin Vincent commit fb90a6e93c0684ab2629a42462400603aa829b9c upstream. sysrq_sched_debug_show() can dump a lot of information. Don't print out all that if we're just trying to get a list of blocked tasks (SysRq-W). The information is still accessible with SysRq-T. Signed-off-by: Rabin Vincent Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Steven Rostedt Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/1459777322-30902-1-git-send-email-rabin.vincent@axis.com Signed-off-by: Ingo Molnar Cc: Nikolay Borisov Signed-off-by: Jiri Slaby Signed-off-by: Willy Tarreau --- kernel/sched/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 506e56e..0892cfa 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -4745,7 +4745,8 @@ void show_state_filter(unsigned long state_filter) touch_all_softlockup_watchdogs(); #ifdef CONFIG_SCHED_DEBUG - sysrq_sched_debug_show(); + if (!state_filter) + sysrq_sched_debug_show(); #endif rcu_read_unlock(); /* -- 2.8.0.rc2.1.gbe9624a