scsi: lpfc: Fix premature re-enabling of interrupts in lpfc_sli_host_down
authorJames Smart <jsmart2021@gmail.com>
Sun, 22 Sep 2019 03:58:48 +0000 (20:58 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 1 Oct 2019 02:07:08 +0000 (22:07 -0400)
commit65a3df63e7ff5addafc75ad8bc5ef5856db55429
tree7474290a2e8ab8dd9fcf2797aee98e0d84232a91
parent359e10f087dbb7b9c9f3035a8cc4391af45bd651
scsi: lpfc: Fix premature re-enabling of interrupts in lpfc_sli_host_down

Use of spin_lock_irq may re-enable interrupts prematurely.

Convert to spin_lock. Note: code is under the phba->hba_lock which has been
locked with irqsave.

Link: https://lore.kernel.org/r/20190922035906.10977-3-jsmart2021@gmail.com
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_sli.c