diff options
author | Jungseung Lee <js07.lee@samsung.com> | 2023-03-20 06:29:05 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2023-03-24 04:55:38 +0300 |
commit | 704bc669e1dda3eb8f6d5cb462b21e85558a3912 (patch) | |
tree | 8aec6e26bb2a535a9014883ffc4f82bfd0bb58f1 /include/linux/workqueue.h | |
parent | cd2440d66fec7d1bdb4f605b64c27c63c9141989 (diff) | |
download | linux-704bc669e1dda3eb8f6d5cb462b21e85558a3912.tar.xz |
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>
Diffstat (limited to 'include/linux/workqueue.h')
-rw-r--r-- | include/linux/workqueue.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h index ac551b8ee7d9..3992c994787f 100644 --- a/include/linux/workqueue.h +++ b/include/linux/workqueue.h @@ -472,6 +472,7 @@ extern unsigned int work_busy(struct work_struct *work); extern __printf(1, 2) void set_worker_desc(const char *fmt, ...); extern void print_worker_info(const char *log_lvl, struct task_struct *task); extern void show_all_workqueues(void); +extern void show_freezable_workqueues(void); extern void show_one_workqueue(struct workqueue_struct *wq); extern void wq_worker_comm(char *buf, size_t size, struct task_struct *task); |