Skip to content

Commit

Permalink
sched.c: Call debug_show_all_locks() when dumping all tasks
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: [email protected]
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
sladkani authored and Ingo Molnar committed Nov 25, 2009
1 parent a3a1de0 commit 93335a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 93335a2

Please sign in to comment.