spin_lock_irqsave vs spin_lock_irq
- by cojocar
On a SMP machine we must use spin_lock_irqsave and not spin_lock_irq from interrupt context.
Why would we want to save the flags (which contains the IF)?
Is there another interrupt routine that could interrupt us?
The flags are per CPU?