From: Tejun Heo <tj@kernel.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Lai Jiangshan <jiangshanlai@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: [GIT PULL] workqueue: Fixes for v7.4-rc2
Date: Mon, 23 Nov 2026 00:11:31 -1000 [thread overview]
Message-ID: <awQRUwvY12hZDmqG@slm.duckdns.org> (raw)
In-Reply-To: <CAHk-=wjm3vbiNYsR+aHxmM3KCEgsSWb379ZQbCuZEsN1dhvbKg@mail.gmail.com>
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
next prev parent reply other threads:[~2026-11-23 10:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-15 20:45 Tejun Heo
2026-11-15 22:14 ` Linus Torvalds
2026-11-16 17:09 ` Tejun Heo
2026-11-16 17:29 ` Linus Torvalds
2026-11-18 17:27 ` Linus Torvalds
2026-11-23 10:11 ` Tejun Heo [this message]
2026-11-23 12:05 ` [PATCH wq/for-7.4-fixes] workqueue: Fix drain_workqueue() missing work items chained across pwqs Tejun Heo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=awQRUwvY12hZDmqG@slm.duckdns.org \
--to=tj@kernel.org \
--cc=jiangshanlai@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®