Commit 4f598458ea4450f53e8ed929ee4e66b3404a7286
Committed by
Rafael J. Wysocki
1 parent
e1ee65d859
Exists in
master
and in
39 other branches
Freezer: Only show the state of tasks refusing to freeze
show_state will dump all tasks state, so if freezer failed to freeze any task, kernel will dump all tasks state and flood the dmesg log. This patch makes freezer only show state of tasks refusing to freeze. Signed-off-by: Xiaotian Feng <dfeng@redhat.com> Acked-by: Pavel Machek <pavel@ucw.cz> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff
kernel/power/process.c
... | ... | @@ -88,12 +88,11 @@ |
88 | 88 | printk(KERN_ERR "Freezing of tasks failed after %d.%02d seconds " |
89 | 89 | "(%d tasks refusing to freeze):\n", |
90 | 90 | elapsed_csecs / 100, elapsed_csecs % 100, todo); |
91 | - show_state(); | |
92 | 91 | read_lock(&tasklist_lock); |
93 | 92 | do_each_thread(g, p) { |
94 | 93 | task_lock(p); |
95 | 94 | if (freezing(p) && !freezer_should_skip(p)) |
96 | - printk(KERN_ERR " %s\n", p->comm); | |
95 | + sched_show_task(p); | |
97 | 96 | cancel_freezing(p); |
98 | 97 | task_unlock(p); |
99 | 98 | } while_each_thread(g, p); |