Zwane Mwaikambo wrote:
>On Thu, 14 Nov 2002, Corey Minyard wrote:
>>I haven't received much feedback on getting this included into the
>>kernel. I think it's a good idea since the nmi handler was starting to
>>get messy, especially when you add kdb, NMI watchdogs, etc.
>What protects the handler list from traversal in NMI context whilst we
>update the list?
RCU does. Basically, the code pulls it from the list atomically wrt to
the NMI handler, and uses RCU to schedule the actual free of the data to
be done after all CPUs have gone to idle or returned from interrupts.
It's subtle, you have to think about it a little. But it does work.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to firstname.lastname@example.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Fri Nov 15 2002 - 22:00:35 EST