I understand that we disable interrupts
when acquiring spinlocks
in interrupt handlers.
I have a doubt as to what happens when a spinlock
is held in process context
and at that instant an interrupt occurs ?
Can this scenario occur ?
As per my understanding if it so happens that the handler too try to acquire the same lock
held in process context , it would keep on spinning for that lock.
So do we always disable interrupts when acquiring spinlock
?