Skip to content

Commit

Permalink
freezer: run show_state() when freezing times out
Browse files Browse the repository at this point in the history
To see which tasks are stuck where.

Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Jul 19, 2007
1 parent 3ee6daf commit 328616e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/power/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ static unsigned int try_to_freeze_tasks(int freeze_user_space)
freeze_user_space ? "user space processes" :
"kernel threads",
TIMEOUT / HZ, todo);
show_state();
read_lock(&tasklist_lock);
do_each_thread(g, p) {
if (freeze_user_space && !is_user_space(p))
Expand Down

0 comments on commit 328616e

Please sign in to comment.