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.
I meant to use spin_lock_irqsave() in process context and spin_lock() in IRQ context.
-- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ