Commit fbbd7ce6 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

genirq: Don't overwrite interrupt thread flags on setup



Chris reported that the recent affinity management changes result in
overwriting the already initialized thread flags.

Use set_bit() to set the affinity bit instead of assigning the bit value to
the flags.

Fixes: 801afdfb ("genirq: Fix interrupt threads affinity vs. cpuset isolated partitions")
Reported-by: default avatarChris Mason <clm@meta.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Acked-by: default avatarFrederic Weisbecker <frederic@kernel.org>
Link: https://patch.msgid.link/87ecp0e4cf.ffs@tglx
Closes: https://lore.kernel.org/all/20251212014848.3509622-1-clm@meta.com
parent 7dbc0d40
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1414,7 +1414,7 @@ setup_irq_thread(struct irqaction *new, unsigned int irq, bool secondary)
	 * Ensure the thread adjusts the affinity once it reaches the
	 * thread function.
	 */
	new->thread_flags = BIT(IRQTF_AFFINITY);
	set_bit(IRQTF_AFFINITY, &new->thread_flags);

	return 0;
}