Re: [Lse-tech] Re: [PATCH 0/7]: Fix for unsafe notifier chain

Andi Kleen
2005-11-28T05:15:42Z

On Sun, Nov 27, 2005 at 09:05:22PM -0800, Paul E. McKenney wrote:
> On Mon, Nov 28, 2005 at 05:59:22AM +0100, Andi Kleen wrote:
> > On Sun, Nov 27, 2005 at 08:57:45PM -0800, Andrew Morton wrote:
> > > "Paul E. McKenney" <paulmck@us.ibm.com> wrote:
> > > >
> > > > Any options I missed?
> > >
> > > Stop using the notifier chains from NMI context - it's too hard. Use a
> > > fixed-size array in the NMI code instead.
> >
> > Or just don't unregister. That is what I did for the debug notifiers.
>
> So the thought is to replicate the notifier code in all non-NMI subsystems
> that require it?

The non NMI subsystems just need to get appropiate locking
(or preferable just use RCU if the notifiers can't sleep)

-Andi