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

From: Ingo Molnar
Date: Wed Jun 14 2006 - 14:25:01 EST



* 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.

Ingo
-
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/