PM / suspend: show workqueue state in suspend flow
Subsystems (4)
PATCH v2 1/1 PM / suspend: show workqueue state in suspend flow
If freezable workqueue aborts suspend flow, show
workqueue state for debug purpose.
Signed-off-by Roger Lu <[email protected]>
---
Changes in v2:
- remove prints in show_workqueue_state().
--- kernel/power/process.c | 3 +++ kernel/workqueue.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-)
kernel/power/process.c +3 -0
@@ -89,6 +89,9 @@ static int try_to_freeze_tasks(bool user_only) elapsed_msecs /1000 , elapsed_msecs %1000 , todo - wq_busy, wq_busy); +if (wq_busy) +show_workqueue_state (); +if (!wakeup) {read_lock (&tasklist_lock);for_each_process_thread (g, p) {
kernel/workqueue.c +2 -2
@@ -4369,8 +4369,8 @@ static void show_pwq(struct pool_workqueue *pwq)/** * show_workqueue_state - dump workqueue state * -* Called from a sysrq handler and prints out all busy workqueues and -* pools. +* Called from a sysrq handler or try_to_freeze_tasks() and prints out +* all busy workqueues and pools. */ void show_workqueue_state (void ) {
Signature · 1 line
2.6.4
Quoted 4 lines · Roger Lu
If freezable workqueue aborts suspend flow, show
workqueue state for debug purpose.Signed-off-by Roger Lu <[email protected]>
Acked-by Tejun Heo <[email protected]>
Rafael, can you please pick this on up?
Thanks.
Signature · 1 line
tejun
Quoted 9 lines · Tejun Heo
Quoted 4 lines · Roger Lu
If freezable workqueue aborts suspend flow, show
workqueue state for debug purpose.Signed-off-by Roger Lu <[email protected]>Acked-by Tejun Heo <[email protected]>Rafael, can you please pick this on up?
I will.
Thanks,
Rafael