Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760048AbcDMLg5 (ORCPT ); Wed, 13 Apr 2016 07:36:57 -0400 Received: from terminus.zytor.com ([198.137.202.10]:56156 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759250AbcDMLgy (ORCPT ); Wed, 13 Apr 2016 07:36:54 -0400 Date: Wed, 13 Apr 2016 04:36:13 -0700 From: tip-bot for Rabin Vincent Message-ID: Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org, mingo@kernel.org, rostedt@goodmis.org, torvalds@linux-foundation.org, rabinv@axis.com, hpa@zytor.com, peterz@infradead.org Reply-To: rostedt@goodmis.org, torvalds@linux-foundation.org, rabinv@axis.com, hpa@zytor.com, peterz@infradead.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, mingo@kernel.org In-Reply-To: <1459777322-30902-1-git-send-email-rabin.vincent@axis.com> References: <1459777322-30902-1-git-send-email-rabin.vincent@axis.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:sched/core] sched/debug: Don't dump sched debug info in SysRq-W Git-Commit-ID: fb90a6e93c0684ab2629a42462400603aa829b9c X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1381 Lines: 38 Commit-ID: fb90a6e93c0684ab2629a42462400603aa829b9c Gitweb: http://git.kernel.org/tip/fb90a6e93c0684ab2629a42462400603aa829b9c Author: Rabin Vincent AuthorDate: Mon, 4 Apr 2016 15:42:02 +0200 Committer: Ingo Molnar CommitDate: Wed, 13 Apr 2016 11:23:21 +0200 sched/debug: Don't dump sched debug info in SysRq-W 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 --- 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 1159423..06efbb9 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -5050,7 +5050,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(); /*