There is a similar question asked by someone:
How does Kernel handle the lock in process context when an interrupt comes?
But still it is not clear, when Interrupt comes on one CPU and a process is executing on same CPU with spinlock held. can interrupt preempt the process holding the spinlock. ? Should be because we have spin_lock_irq to disable the interrupts.
it means that, when kernel preemption is disabled and interrupt comes, then interrupt can preempt the process and start executing right?
Can anyone clarify this. I think I am missing point here.
Thanks Gururaj