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>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user