summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorOded Gabbay <ogabbay@kernel.org>2021-08-20 13:49:39 +0300
committerOded Gabbay <ogabbay@kernel.org>2021-09-01 18:38:24 +0300
commit176d23a77edb7f10611bf61f1196abde119c7694 (patch)
tree29a26937b894b4bfd8d50e27d38b2e7a106779cf /lib/mpi/mpi-sub-ui.c
parent71731090ab17a208a58020e4b342fdfee280458a (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>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions