Re: FW: spinlocks dont work

From: Tim Hockin
Date: Fri Feb 13 2004 - 16:39:57 EST


On Fri, Feb 13, 2004 at 04:12:08PM -0500, RANDAZZO@xxxxxxxxxxx wrote:
> On a uniprocessor system, with config_smp NOT Defined...
>
> Note the following example:
>
> driver 'A' calls spin_lock_irqsave and gets through (but does not call
> ..unlock).
> driver 'B' calls spin_lock_irqsave and gets through???
>
> How can B get through if A did not unlock yet?

Because actual mutexing is a no-op without CONFIG_SMP. What you have is a BUG.
Don't do that.


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