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

Re: Need for a new spinlock API?



On 4/4/07, GAggarwal@xxxxxxxxxxxxxxxxxx <GAggarwal@xxxxxxxxxxxxxxxxxx> wrote:


Hi Rajat,

I think spin_lock_irqsave() will fulfill the purpose as otherwise it may be
possible that the when a data structure is accessed in process context by
taking spin_lock and an interrupt comes then the ISR will remain in forever
loop waiting for the process context to release the lock result in a
deadlock situation for a uniprocessor system.

HI Gaurav,


I meant to use spin_lock_irqsave() in process context and spin_lock()
in IRQ context.

Thanks,

Rajat

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ