• Oded Gabbay's avatar
    habanalabs: disable IRQ in user interrupts spinlock · 176d23a7
    Oded Gabbay authored
    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: default avatarOded Gabbay <ogabbay@kernel.org>
    176d23a7
command_submission.c 75 KB