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>
This commit is contained in:
parent
3ee6dafc67
commit
328616e3b7
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user