workqueue: Introduce show_freezable_workqueues
authorJungseung Lee <js07.lee@samsung.com>
Mon, 20 Mar 2023 03:29:05 +0000 (12:29 +0900)
committerTejun Heo <tj@kernel.org>
Fri, 24 Mar 2023 01:55:38 +0000 (15:55 -1000)
commit704bc669e1dda3eb8f6d5cb462b21e85558a3912
tree8aec6e26bb2a535a9014883ffc4f82bfd0bb58f1
parentcd2440d66fec7d1bdb4f605b64c27c63c9141989
workqueue: Introduce show_freezable_workqueues

Currently show_all_workqueue is called if freeze fails at the time of
freeze the workqueues, which shows the status of all workqueues and of
all worker pools. In this cases we may only need to dump state of only
workqueues that are freezable and busy.

This patch defines show_freezable_workqueues, which uses
show_one_workqueue, a granular function that shows the state of individual
workqueues, so that dump only the state of freezable workqueues
at that time.

tj: Minor message adjustment.

Signed-off-by: Jungseung Lee <js07.lee@samsung.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
include/linux/workqueue.h
kernel/power/process.c
kernel/workqueue.c