Hi,
Thank you for giving me a comment.
I have a stupid question: since you have serialized the process procedure via
smp_send_stop, why still using spin_lock_xxx? Maybe preempt_disable/enable is
enough?
I added spin_lock_init() in panic path for sharing code with other triggers
such as oops/reboot/emergency_restart because they still need spin_locks.
Do you suggest following code?
<snip>
If(!panic)
spin_lock_irqsave();
.
.
If(!panic)
spin_unlock_restore();
<snip>
I don't stick to current patch.
So I will resend a patch above if you request.