[PATCH] prevent ia64 from invoking irq handlers on offline CPUs



Make ia64 refrain from clearing a given to-be-offlined CPU's bit in the
cpu_online_mask until it has processed pending irqs. This change
prevents other CPUs from being blindsided by an apparently offline CPU
nevertheless changing globally visible state.

Signed-off-by: Paul E. McKenney <paulmck@xxxxxxxxxxxxxxxxxx>
---

smpboot.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/ia64/kernel/smpboot.c b/arch/ia64/kernel/smpboot.c
index bcea81e..7a90f42 100644
--- a/arch/ia64/kernel/smpboot.c
+++ b/arch/ia64/kernel/smpboot.c
@@ -741,8 +741,6 @@ int __cpu_disable(void)
return -EBUSY;
}

- cpu_clear(cpu, cpu_online_map);
-
if (migrate_platform_irqs(cpu)) {
cpu_set(cpu, cpu_online_map);
return (-EBUSY);
@@ -751,6 +749,7 @@ int __cpu_disable(void)
remove_siblinginfo(cpu);
cpu_clear(cpu, cpu_online_map);
fixup_irqs();
+ cpu_clear(cpu, cpu_online_map);
local_flush_tlb_all();
cpu_clear(cpu, cpu_callin_map);
return 0;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • [PATCH] prevent sparc64 from invoking irq handlers on offline CPUs
    ... Make sparc64 refrain from clearing a given to-be-offlined CPU's bit in the ... cpu_online_mask until it has processed pending irqs. ... prevents other CPUs from being blindsided by an apparently offline CPU ...
    (Linux-Kernel)
  • Re: [PATCH] prevent sparc64 from invoking irq handlers on offline CPUs
    ... cpu_online_mask until it has processed pending irqs. ... prevents other CPUs from being blindsided by an apparently offline CPU ... A few architectures use it to exclude some of the IPI code while ...
    (Linux-Kernel)
  • Re: Auction: PC Server 720 and 3518 and more
    ... Thanks for clearing everything up. ... I apologize for being so naive about the 720, but I just never tinkered with ... MMX is not supported, nor should it even be tried unless ALL the CPU ... Still need a couple of CPUs though. ...
    (comp.sys.ibm.ps2.hardware)
  • Re: [PATCH] percpu data: only iterate over possible CPUs
    ... Heiko Carstens a écrit: ... cpu_possible_map is changed back to reflect a smaller number of cpus. ... Doesn't look like the correct way to fix this. ... of course you may loose some bits of memory but clearing a cpu in cpu_possible_map is allowed. ...
    (Linux-Kernel)