Re: [patch 08/19] mutex subsystem, core

From: Ingo Molnar
Date: Tue Jan 03 2006 - 10:05:04 EST



* Nick Piggin <nickpiggin@xxxxxxxxxxxx> wrote:

> >+#define spin_lock_mutex(lock) spin_lock(lock)
> >+#define spin_unlock_mutex(lock) spin_unlock(lock)
>
> Is this an interrupt deadlock, or do you not allow interrupt contexts
> to even trylock a mutex?

correct, no irq contexts are allowed. This is also checked for if
CONFIG_DEBUG_MUTEXES is enabled.

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/