make SysRq-T show all tasks again
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 by 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> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
20f09390b2
commit
39bc89fd40
@@ -4746,7 +4746,7 @@ void show_state_filter(unsigned long state_filter)
|
||||
* 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);
|
||||
|
||||
|
Reference in New Issue
Block a user