From: Thomas Gleixner <tglx@linutronix.de>
To: Frederic Weisbecker <frederic@kernel.org>,
Waiman Long <llong@redhat.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
Marco Crivellari <marco.crivellari@suse.com>,
cgroups@vger.kernel.org
Subject: Re: [PATCH] genirq: Fix IRQ threads affinity VS cpuset isolated partitions
Date: Fri, 14 Nov 2025 16:40:45 +0100 [thread overview]
Message-ID: <87tsywbp1e.ffs@tglx> (raw)
In-Reply-To: <aRSD-Fyy87qhCR6C@localhost.localdomain>
On Wed, Nov 12 2025 at 13:56, Frederic Weisbecker wrote:
> Le Mon, Nov 10, 2025 at 04:28:49PM -0500, Waiman Long a écrit :
>> This function seems to mirror what is done in irq_thread_check_affinity()
>> when the affinity cpumask is available. But if affinity isn't defined, it
>> will make this irq kthread immune from changes in the set of isolated CPUs.
>> Should we use IRQD_AFFINITY_SET flag to check if affinity has been set and
>> then set PF_NO_SETAFFINITY only in this case?
>
> So IIUC, the cpumask_available() failure can't really happen because an allocation
> failure would make irq_alloc_descs() fail.
That's indeed a historical leftover.
> __irq_alloc_descs() -> alloc_descs() -> alloc_desc() -> init_desc() - > alloc_mask()
>
> The error doesn't seem as well handled in early_irq_init() but the desc is freed
> anyway if that happens.
Right, the insert should only happen when desc != NULL. OTOH if it fails
at that stage the kernel won't get far anyway and definitely not to the
point where these cpumasks are checked :)
> So this is just a sanity check at best.
I think we can just remove it. It does not make sense at all.
Thanks,
tglx
next prev parent reply other threads:[~2025-11-14 15:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-05 13:17 [PATCH] genirq: Fix IRQ threads affinity VS cpuset isolated partitions Frederic Weisbecker
2025-11-10 21:28 ` Waiman Long
2025-11-12 12:56 ` Frederic Weisbecker
2025-11-14 15:40 ` Thomas Gleixner [this message]
2025-11-12 13:00 ` Frederic Weisbecker
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=87tsywbp1e.ffs@tglx \
--to=tglx@linutronix.de \
--cc=cgroups@vger.kernel.org \
--cc=frederic@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llong@redhat.com \
--cc=marco.crivellari@suse.com \
/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