Re: [GIT PULL] workqueue: Fixes for v7.4-rc2
From: Tejun Heo
Date: Mon Nov 23 2026 - 05:12:19 EST
Hello,
On Wed, Nov 18, 2026 at 11:27:38AM -0600, Linus Torvalds wrote:
...
> And then the drain_workqueue() logic can just be changed a bit: after
> draining, go back and do kind of what you used to do, except don't look
> at just whether the pwq is empty, but also at whether new work was
> started?
Yeah, this is a lot simpler. Instead of trying to detect events across
flush, just make sure that empty test actually can test empty.
> A *UNTESTED* patch like this, in other words...
This looks correct to me but lemme do some testing on it.
Thanks.
--
tejun