diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2007-07-19 04:47:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-19 13:04:42 -0400 |
commit | 328616e3b76859f1abdd08a8df1ddbb7bb81f807 (patch) | |
tree | c2f5bf6250159b19cff6f000f2f752b8924d6dc6 /kernel | |
parent | 3ee6dafc677a68e461a7ddafc94a580ebab80735 (diff) |
freezer: run show_state() when freezing times out
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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/power/process.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/power/process.c b/kernel/power/process.c index e0233d8422b9..b850173e7561 100644 --- a/kernel/power/process.c +++ b/kernel/power/process.c | |||
@@ -157,6 +157,7 @@ static unsigned int try_to_freeze_tasks(int freeze_user_space) | |||
157 | freeze_user_space ? "user space processes" : | 157 | freeze_user_space ? "user space processes" : |
158 | "kernel threads", | 158 | "kernel threads", |
159 | TIMEOUT / HZ, todo); | 159 | TIMEOUT / HZ, todo); |
160 | show_state(); | ||
160 | read_lock(&tasklist_lock); | 161 | read_lock(&tasklist_lock); |
161 | do_each_thread(g, p) { | 162 | do_each_thread(g, p) { |
162 | if (freeze_user_space && !is_user_space(p)) | 163 | if (freeze_user_space && !is_user_space(p)) |