Re: down_trylock doesn't preserve irqstate

From: Andrea Arcangeli (andrea@suse.de)
Date: Fri Feb 25 2000 - 19:33:35 EST


On Fri, 25 Feb 2000, David S. Miller wrote:

>You should not acquire a semaphore with interrupts disabled.
>
>And if the semaphore sleeps, you'll end up with IRQs enabled when it
>wakes up.

The only point of the trylock is that it doesn't sleep and that it can be
used within irq handlers and so on...

Andrea

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



This archive was generated by hypermail 2b29 : Tue Feb 29 2000 - 21:00:14 EST