Skip to content

Commit fbbd7ce

Browse files
committed
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: 801afdf ("genirq: Fix interrupt threads affinity vs. cpuset isolated partitions") Reported-by: Chris Mason <clm@meta.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Frederic Weisbecker <frederic@kernel.org> Link: https://patch.msgid.link/87ecp0e4cf.ffs@tglx Closes: https://lore.kernel.org/all/20251212014848.3509622-1-clm@meta.com
1 parent 7dbc0d4 commit fbbd7ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/irq/manage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1414,7 +1414,7 @@ setup_irq_thread(struct irqaction *new, unsigned int irq, bool secondary)
14141414
* Ensure the thread adjusts the affinity once it reaches the
14151415
* thread function.
14161416
*/
1417-
new->thread_flags = BIT(IRQTF_AFFINITY);
1417+
set_bit(IRQTF_AFFINITY, &new->thread_flags);
14181418

14191419
return 0;
14201420
}

0 commit comments

Comments
 (0)