Re: [PATCH wq/for-7.4-fixes] workqueue: Fix drain_workqueue() missing work items chained across pwqs
From: Tejun Heo
Date: Mon Nov 02 2026 - 13:21:45 EST
Applied to wq/for-7.4-fixes with the following tag added:
Reviewed-by: Breno Leitao <leitao@xxxxxxxxxx>
With this patch, a work item that keeps re-queueing itself forever
makes drain_workqueue() loop forever. The current code can escape that
through this race, but the escape still trips the WARN in
destroy_workqueue() and leaks the workqueue.
Thanks.
--
tejun