Cc: <akpm@...>, <linux-kernel@...>, Andi Kleen <ak@...>, H. Peter Anvin <hpa@...>, Chuck Ebbert <cebbert@...>, Christoph Hellwig <hch@...>, Jeremy Fitzhardinge <jeremy@...>, Ingo Molnar <mingo@...>, Thomas Gleixner <tglx@...>
On Thursday 15 November 2007 15:06:10 Mathieu Desnoyers wrote:
Sure, but as I pointed out previously, such calls are already best effort.
You can do very little safely from do_nmi(), and calling printk isn't one of
them, nor is grabbing a spinlock (well, actually you could as long as it's
*only* used by NMI handlers. See any of those?).
It's overengineered, since it's less likely than deadlock already.
Yes, I don't think stop_machine is actually what you want anyway, since you
are happy to run in interrupt context. An IPI-based scheme is probably
better, and also has the side effect of iret doing the sync you need, IIUC.
Hope that clarifies,
Rusty.
-