Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964840AbZKYNb1 (ORCPT ); Wed, 25 Nov 2009 08:31:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758326AbZKYNbX (ORCPT ); Wed, 25 Nov 2009 08:31:23 -0500 Received: from hera.kernel.org ([140.211.167.34]:49055 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934722AbZKYNbU (ORCPT ); Wed, 25 Nov 2009 08:31:20 -0500 Date: Wed, 25 Nov 2009 13:30:49 GMT From: tip-bot for Shmulik Ladkani Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@redhat.com, tglx@linutronix.de, mingo@elte.hu, shmulik.ladkani@gmail.com Reply-To: mingo@redhat.com, hpa@zytor.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, shmulik.ladkani@gmail.com, mingo@elte.hu In-Reply-To: <4b0d2fe4.0ab6660a.6437.3cfc@mx.google.com> References: <4b0d2fe4.0ab6660a.6437.3cfc@mx.google.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:sched/core] sched.c: Call debug_show_all_locks() when dumping all tasks Message-ID: Git-Commit-ID: 93335a21557e80f6a99bc2812c634e488139043c X-Mailer: tip-git-log-daemon MIME-Version: 1.0 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: 1535 Lines: 42 Commit-ID: 93335a21557e80f6a99bc2812c634e488139043c Gitweb: http://git.kernel.org/tip/93335a21557e80f6a99bc2812c634e488139043c Author: Shmulik Ladkani AuthorDate: Wed, 25 Nov 2009 15:23:41 +0200 Committer: Ingo Molnar CommitDate: Wed, 25 Nov 2009 14:26:52 +0100 sched.c: Call debug_show_all_locks() when dumping all tasks In commit v2.6.21-691-g39bc89f ("make SysRq-T show all tasks again") the interface of show_state_filter() was changed: zero valued 'state_filter' specifies "dump all tasks" (instead of -1). However, the condition for calling debug_show_all_locks() ("show locks if all tasks are dumped") was not updated accordingly. Signed-off-by: Shmulik Ladkani Cc: peterz@infradead.org LKML-Reference: <4b0d2fe4.0ab6660a.6437.3cfc@mx.google.com> Signed-off-by: Ingo Molnar --- kernel/sched.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/sched.c b/kernel/sched.c index 010d5e1..a57c6ae 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -6915,7 +6915,7 @@ void show_state_filter(unsigned long state_filter) /* * Only show locks if all tasks are dumped: */ - if (state_filter == -1) + if (!state_filter) debug_show_all_locks(); } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/