Re: [PATCH v4] workqueue: Warn when work flush own workqueue

2020-09-04 Thread Tejun Heo
On Thu, Aug 27, 2020 at 02:09:11PM +0800, Qianli Zhao wrote: > @@ -2594,13 +2595,17 @@ static void check_flush_dependency(struct > workqueue_struct *target_wq, > struct work_struct *target_work) > { > work_func_t target_func = target_work ? target_work->func

[PATCH v4] workqueue: Warn when work flush own workqueue

2020-08-26 Thread Qianli Zhao
From: Qianli Zhao If a workqueue flushes itself then that will lead to a deadlock. Print a warning and a stack trace when this happens. crash> ps 10856 PIDPPID CPU TASK ST COMM 108562 2 ffc873428080 UN [kworker/u16:15] crash> bt 10856 PID: 10856 TASK: ffc8734