[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can we hold a spin lock and call up() (on a semaphore)



Hi,
  In Process cotext you can hold spin_lock and also you can up()..  And its better to use spin_lock_irqsave intead of spin_lock in process context..

Naveed Latif

On 2/8/06, Hareesh Nagarajan <hareesh.nagarajan@xxxxxxxxx> wrote:
Hi:

In process context (and interrupt context, while we are at it) can we
hold a spin lock and call up() (on a semaphore)? Apart from the usual
issues pertaining with deadlocks - are we guaranteed that an up is a
non-blocking operation?

Thanks,

Hareesh

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/