From: Thomas Gleixner <tglx@kernel.org>
To: tip-bot2 for Wang Shuaiwei <tip-bot2@linutronix.de>,
linux-tip-commits@vger.kernel.org
Cc: Wang Shuaiwei <wangshuaiwei1@xiaomi.com>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
Frederic Weisbecker <frederic@kernel.org>,
x86@kernel.org, linux-kernel@vger.kernel.org,
Waiman Long <llong@redhat.com>
Subject: Re: [tip: timers/nohz] tick/nohz: Add BLOCK_SOFTIRQ to the hotplug safe mask
Date: Tue, 20 Oct 2026 23:51:11 +0200 [thread overview]
Message-ID: <87ik2w11o0.ffs@fw13> (raw)
In-Reply-To: <178985193276.2819794.55124822433246938.tip-bot2@tip-bot2>
On Sat, Sep 19 2026 at 21:05, tip-bot wrote:
> tick/nohz: Add BLOCK_SOFTIRQ to the hotplug safe mask
>
> During CPU-hotplug stress testing combined with an I/O workload, the
> following message is observed:
>
> "NOHZ tick-stop error: local softirq work is pending, handler #10!!!"
>
> On CPU offline, ksoftirqd is parked at CPUHP_AP_SMPBOOT_THREADS while the
> CPU still takes interrupts. A block completion raised after that point
> stays pending, and if the dying CPU goes idle before teardown,
> report_idle_softirq() sees it, keeps the tick alive and prints the error
> above.
>
> Such pending block completions on the outgoing CPU are drained later by
> blk_softirq_cpu_dead() (CPUHP_BLOCK_SOFTIRQ_DEAD), so a pending
> BLOCK_SOFTIRQ is harmless here. Add it to SOFTIRQ_HOTPLUG_SAFE_MASK like
> the other teardown-covered vectors.
In principle this is correct, but with partial hotplug it is not. It
might work by chance, but not by design.
Just use the sysfs interface to bring down the CPU to
CPUHP_AP_SCHED_WAIT_EMPTY. If a soft interrupt is raised in that state
which requires ksoftirqd then that might be delayed to the point where
an interrupt arrives and eventually handles it (or not).
That means all of this "safe" mask magic needs some thoughts.
Thanks,
tglx
prev parent reply other threads:[~2026-10-20 21:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-04 6:45 [PATCH] tick/block: " Wang Shuaiwei
2026-09-17 9:30 ` Wang Shuaiwei
2026-09-17 9:51 ` Sebastian Andrzej Siewior
2026-09-18 10:39 ` Wang Shuaiwei
2026-09-18 12:42 ` Frederic Weisbecker
2026-09-19 21:05 ` [tip: timers/nohz] tick/nohz: " tip-bot2 for Wang Shuaiwei
2026-10-20 21:51 ` Thomas Gleixner [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=87ik2w11o0.ffs@fw13 \
--to=tglx@kernel.org \
--cc=bigeasy@linutronix.de \
--cc=frederic@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=llong@redhat.com \
--cc=tip-bot2@linutronix.de \
--cc=wangshuaiwei1@xiaomi.com \
--cc=x86@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®