Re: Semaphore lock up in SMP environment

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Mon Mar 27 2000 - 12:58:49 EST


> I call up() in our ISR to release the semaphore flag . Since down() in SMP
> disable interrupts , there is no way my ISR is fired which releases the
> flag
> and so freezes the system.

Down does not disable interrupts that I can see, except momentarily when
checking the queues, and it restores them before it yields CPU time. On
exit the irqs are enabled.

-
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 : Fri Mar 31 2000 - 21:00:20 EST