Messages in this thread | | | Date | Sat, 26 Feb 2000 01:33:35 +0100 (CET) | From | Andrea Arcangeli <> | Subject | Re: down_trylock doesn't preserve irqstate |
| |
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/
| |