Re: [PATCH] improve spinlock debugging

Nigel Gamble (nigel@nrg.org)
Tue, 4 Dec 2001 13:20:50 -0800 (PST)


On Tue, 4 Dec 2001, george anzinger wrote:
> For example, preemption currently counts
> up on spin_lock and disable irq, counting the spin_lockirq twice. In

That's not correct: we don't count it twice because we don't count
local_irq_disable etc., only the spin locks. Because...

> (Oh, and since the irq
> inhibits preemption all by itself, we don't need to count it either.)

...so we don't.

Nigel Gamble nigel@nrg.org
Mountain View, CA, USA. http://www.nrg.org/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/