Re: interrupt checks for spinlocks

From: Pete Zaitcev (zaitcev@redhat.com)
Date: Sun Nov 03 2002 - 19:42:49 EST


> Date: Sun, 3 Nov 2002 16:28:13 -0800
> From: William Lee Irwin III <wli@holomorphy.com>

> >> (1) check that spinlocks are not taken in interrupt context without
> >> interrupts disabled

> > Bill, why is this bad? I routinely use this technique.
> > -- Pete
>
> If you receive the same interrupt on the same cpu and re-enter code
> that does that, you will deadlock.

How would that happen? I thought it was not possible to re-enter
an interrupt, and that it was pretty fundamental for Linux.
When did we allow it, and what are implications for architectures?

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



This archive was generated by hypermail 2b29 : Thu Nov 07 2002 - 22:00:31 EST