Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755459AbcDDNmJ (ORCPT ); Mon, 4 Apr 2016 09:42:09 -0400 Received: from bes.se.axis.com ([195.60.68.10]:33289 "EHLO bes.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755382AbcDDNmH (ORCPT ); Mon, 4 Apr 2016 09:42:07 -0400 From: Rabin Vincent To: mingo@redhat.com, peterz@infradead.org Cc: linux-kernel@vger.kernel.org, Rabin Vincent Subject: [PATCH] sched: don't dump sched debug info in SysRq-W Date: Mon, 4 Apr 2016 15:42:02 +0200 Message-Id: <1459777322-30902-1-git-send-email-rabin.vincent@axis.com> X-Mailer: git-send-email 2.7.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 761 Lines: 27 From: Rabin Vincent 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 --- 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 8b489fc..e330d6c 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -4998,7 +4998,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.7.0