From: Ingo Molnar <mingo@elte.hu>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Adrian Bunk <bunk@stusta.de>,
Linus Torvalds <torvalds@linux-foundation.org>,
linux-kernel@vger.kernel.org
Subject: Re: [3/3] 2.6.21-rc7: known regressions (v2)
Date: Wed, 25 Apr 2007 19:57:58 +0200 [thread overview]
Message-ID: <20070425175758.GA28201@elte.hu> (raw)
In-Reply-To: <20070425040605.6d6b4a82.akpm@linux-foundation.org>
just found and fixed the bug below in SysRq-T - should be included in
v2.6.21 i think.
-------------------------->
Subject: [patch] make SysRq-T show all tasks again
From: Ingo Molnar <mingo@elte.hu>
show_state() (SysRq-T) developed the buggy habbit of not showing
TASK_RUNNING tasks. This was due to the mistaken belief that
state_filter == -1 would be a pass-through filter - while in reality it
did not let TASK_RUNNING == 0 p->state values through.
(fix this be restoring the original '!state_filter means all tasks'
special-case i had in the original version. Test-built and test-booted
on i686, SysRq-T now works as intended.)
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
include/linux/sched.h | 4 ++--
kernel/sched.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
Index: linux/include/linux/sched.h
===================================================================
--- linux.orig/include/linux/sched.h
+++ linux/include/linux/sched.h
@@ -196,13 +196,13 @@ extern void init_idle(struct task_struct
extern cpumask_t nohz_cpu_mask;
/*
- * Only dump TASK_* tasks. (-1 for all tasks)
+ * Only dump TASK_* tasks. (0 for all tasks)
*/
extern void show_state_filter(unsigned long state_filter);
static inline void show_state(void)
{
- show_state_filter(-1);
+ show_state_filter(0);
}
extern void show_regs(struct pt_regs *);
Index: linux/kernel/sched.c
===================================================================
--- linux.orig/kernel/sched.c
+++ linux/kernel/sched.c
@@ -4746,7 +4746,7 @@ void show_state_filter(unsigned long sta
* console might take alot of time:
*/
touch_nmi_watchdog();
- if (p->state & state_filter)
+ if (!state_filter || (p->state & state_filter))
show_task(p);
} while_each_thread(g, p);
next prev parent reply other threads:[~2007-04-25 17:58 UTC|newest]
Thread overview: 96+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-16 0:05 Linux 2.6.21-rc7 Linus Torvalds
2007-04-16 0:37 ` [1/2] 2.6.21-rc7: known regressions Adrian Bunk
2007-04-16 2:21 ` Michal Jaegermann
2007-04-16 21:44 ` Chuck Ebbert
2007-04-17 10:09 ` Takashi Iwai
2007-04-19 20:03 ` Michal Piotrowski
2007-04-20 10:34 ` Takashi Iwai
2007-04-20 18:18 ` Andrew Morton
2007-04-20 18:26 ` Takashi Iwai
2007-04-23 10:19 ` Takashi Iwai
2007-04-17 0:14 ` Brandeburg, Jesse
2007-04-17 0:32 ` Dave Jones
2007-04-17 0:41 ` Jeff Garzik
2007-04-16 0:37 ` [2/2] " Adrian Bunk
2007-04-16 0:37 ` Adrian Bunk
2007-04-16 0:54 ` Dave Jones
2007-04-16 0:54 ` Dave Jones
2007-04-16 1:16 ` Adrian Bunk
2007-04-16 3:44 ` Jeremy Fitzhardinge
2007-04-16 3:44 ` Jeremy Fitzhardinge
2007-04-16 6:29 ` Dave Jones
2007-04-16 6:54 ` Antonino A. Daplas
2007-04-16 7:23 ` Dave Jones
2007-04-16 7:32 ` Antonino A. Daplas
2007-04-16 7:55 ` Dave Jones
2007-04-16 9:26 ` Richard Purdie
2007-04-17 3:34 ` Dave Jones
2007-04-17 23:48 ` Antonino A. Daplas
2007-04-18 0:35 ` Dave Jones
2007-04-16 10:06 ` Rafael J. Wysocki
2007-04-20 4:57 ` Jeremy Fitzhardinge
2007-04-20 5:03 ` Dave Jones
2007-04-20 5:03 ` Dave Jones
2007-04-20 5:15 ` Jeremy Fitzhardinge
2007-04-20 5:19 ` Dave Jones
2007-04-20 5:19 ` Dave Jones
2007-04-20 5:33 ` Jeremy Fitzhardinge
2007-04-20 14:51 ` Dave Jones
2007-04-20 14:51 ` Dave Jones
2007-04-20 15:28 ` Jeremy Fitzhardinge
2007-04-20 16:03 ` Dave Jones
2007-04-20 16:03 ` Dave Jones
2007-04-20 17:16 ` Jeremy Fitzhardinge
2007-04-20 17:21 ` Dave Jones
2007-04-20 17:21 ` Dave Jones
2007-04-21 0:02 ` Jeremy Fitzhardinge
2007-04-21 9:45 ` Rafael J. Wysocki
2007-04-17 0:01 ` Linux 2.6.21-rc7 Chuck Ebbert
2007-04-23 21:48 ` [1/3] 2.6.21-rc7: known regressions (v2) Adrian Bunk
2007-04-23 22:18 ` Greg KH
2007-04-24 9:32 ` Wolfgang Erig
2007-04-25 0:14 ` Greg KH
2007-04-25 0:29 ` Adrian Bunk
2007-04-25 0:51 ` Greg KH
2007-04-25 1:21 ` Adrian Bunk
2007-04-25 8:19 ` Eric W. Biederman
2007-04-25 16:20 ` Wolfgang Erig
2007-04-23 21:48 ` [2/3] " Adrian Bunk
2007-04-23 21:49 ` [3/3] " Adrian Bunk
2007-04-23 21:49 ` Adrian Bunk
2007-04-25 11:06 ` Andrew Morton
2007-04-25 11:06 ` Andrew Morton
2007-04-25 11:31 ` Adrian Bunk
2007-04-25 11:31 ` Adrian Bunk
2007-04-25 13:01 ` Dave Jones
2007-04-25 13:01 ` Dave Jones
2007-04-25 13:50 ` Antonino A. Daplas
2007-04-25 13:52 ` Antonino A. Daplas
2007-04-25 14:33 ` Dave Jones
2007-04-25 14:33 ` Dave Jones
2007-04-25 15:24 ` Antonino A. Daplas
2007-04-25 16:31 ` Dave Jones
2007-04-25 16:31 ` Dave Jones
2007-04-25 23:00 ` Adrian Bunk
2007-04-25 23:00 ` Adrian Bunk
2007-04-25 15:24 ` Antonino A. Daplas
2007-04-25 13:52 ` Antonino A. Daplas
2007-04-25 13:50 ` Antonino A. Daplas
2007-04-25 14:06 ` Jeremy Fitzhardinge
2007-04-25 14:06 ` Jeremy Fitzhardinge
2007-04-25 11:43 ` Ingo Molnar
2007-04-25 11:43 ` Ingo Molnar
2007-04-25 13:45 ` Jeff Chua
2007-05-02 21:44 ` Thomas Gleixner
2007-05-02 21:44 ` Thomas Gleixner
2007-04-25 13:45 ` Jeff Chua
2007-04-25 17:57 ` Ingo Molnar [this message]
2007-04-25 18:08 ` john stultz
2007-04-26 0:33 ` Len Brown
2007-04-26 0:33 ` Len Brown
2007-04-26 0:49 ` john stultz
2007-04-26 0:49 ` john stultz
2007-04-25 18:08 ` john stultz
2007-04-25 19:34 ` Rafael J. Wysocki
2007-04-25 19:34 ` Rafael J. Wysocki
2007-04-25 23:40 ` 2.6.21-rc7: known regressions with patches Adrian Bunk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070425175758.GA28201@elte.hu \
--to=mingo@elte.hu \
--cc=akpm@linux-foundation.org \
--cc=bunk@stusta.de \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.