lkml.org 
[lkml]   [2012]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRE: [PATCH 1/2] x86, reboot: revert stop_other_cpus to using IRQ with NMI fallback

> + /* if the REBOOT_VECTOR didn't work, try with the NMI */
> + if ((num_online_cpus() > 1) && (!smp_no_nmi_ipi)) {
> + if (register_nmi_handler(NMI_LOCAL, smp_stop_nmi_callback,
> + NMI_FLAG_FIRST, "smp_stop"))

register_nmi_handler() doesn't work if kernel panics in nmi context because kzalloc() is called in register_nmi_handler() and
it may sleep.

register_nmi_handler() should be replaced with notifier_chain like kdump does.

Seiji


\
 
 \ /
  Last update: 2012-03-02 21:47    [W:0.206 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site