Re: interrupt checks for spinlocks

From: William Lee Irwin III (wli@holomorphy.com)
Date: Sun Nov 03 2002 - 19:53:39 EST


From: William Lee Irwin III <wli@holomorphy.com>
>>>> (1) check that spinlocks are not taken in interrupt context without
>>>> interrupts disabled

At some point in the past, Pete Zaitcev wrote:
>>> Bill, why is this bad? I routinely use this technique.

From: William Lee Irwin III <wli@holomorphy.com>
>> If you receive the same interrupt on the same cpu and re-enter code
>> that does that, you will deadlock.

On Sun, Nov 03, 2002 at 07:42:49PM -0500, Pete Zaitcev wrote:
> 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?

This non-reentrant stuff hurts my head. Another patch down the
toilet, I guess.

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