Re: [patch 7/8] lock validator: s390 use raw_spinlock in mcck handler

From: Heiko Carstens
Date: Wed Jun 14 2006 - 14:47:21 EST


On Wed, Jun 14, 2006 at 09:25:16PM +0200, Ingo Molnar wrote:
>
> * Heiko Carstens <heiko.carstens@xxxxxxxxxx> wrote:
>
> > From: Heiko Carstens <heiko.carstens@xxxxxxxxxx>
> >
> > Machine checks on s390 are always enabled (except in the machine check
> > handler itself). Therefore use a raw_spinlock in the machine check
> > handler to avoid deadlocks in the lock validator.
>
> hm, couldnt you use the ->lockdep_recursion mechanism to take care of
> such cases? Just call lockdep_off() when entering a machine exception
> handler, and lockdep_on() when exiting it.

Ah, sure. Wasn't aware that there is such an interface. Will do.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/