commit | 176d23a77edb7f10611bf61f1196abde119c7694 | [log] [tgz] |
---|---|---|
author | Oded Gabbay <ogabbay@kernel.org> | Fri Aug 20 13:49:39 2021 +0300 |
committer | Oded Gabbay <ogabbay@kernel.org> | Wed Sep 01 18:38:24 2021 +0300 |
tree | 29a26937b894b4bfd8d50e27d38b2e7a106779cf | |
parent | 71731090ab17a208a58020e4b342fdfee280458a [diff] |
habanalabs: disable IRQ in user interrupts spinlock Because this spinlock is taken in an interrupt handler, we must use the spin_lock_irqsave/irqrestore version to disable the interrupts on the local CPU. Otherwise, we can have a potential deadlock (if the interrupt handler is scheduled to run on the same cpu that the code who took the lock was running on). Signed-off-by: Oded Gabbay <ogabbay@kernel.org>