From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: Tejun Heo <tj@kernel.org>
Cc: Lai Jiangshan <jiangshanlai@gmail.com>,
Thomas Gleixner <tglx@kernel.org>,
Peter Zijlstra <peterz@infradead.org>,
syzbot+1bd20115328f8254ed62@syzkaller.appspotmail.com,
syzkaller-bugs@googlegroups.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH wq/for-7.3] workqueue: Annotate cb_lock nesting when draining a dead BH pool
Date: Wed, 19 Aug 2026 16:18:00 +0200 [thread overview]
Message-ID: <20260819141800.c_TRbgyD@linutronix.de> (raw)
In-Reply-To: <178707884181.3094421.2098832455828801685@slm.duckdns.org>
On 2026-08-18 08:47:21 [-1000], Tejun Heo wrote:
…
> The nesting can't deadlock. A pool's bh_worker() runs nested only while the
> pool's CPU is dead, entered from a live pool's bh_worker() on the draining
> CPU, so the ordering is always live to dead. CPU hotplug operations are
> serialized and the drain is synchronous, so the nesting depth never exceeds
> two. Annotate the inner acquisition with SINGLE_DEPTH_NESTING.
This assumes that the pool for the draining is different than the pool
handling the current work item so it works.
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de
While trying to reproduce this I noticed that it is possible to schedule
a bh worker on a different CPU than current.
Sebastian
prev parent reply other threads:[~2026-08-19 14:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-18 18:47 Tejun Heo
2026-08-18 18:58 ` Tejun Heo
2026-08-19 14:18 ` Sebastian Andrzej Siewior [this message]
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=20260819141800.c_TRbgyD@linutronix.de \
--to=bigeasy@linutronix.de \
--cc=jiangshanlai@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peterz@infradead.org \
--cc=syzbot+1bd20115328f8254ed62@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
--cc=tglx@kernel.org \
--cc=tj@kernel.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®