]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Fix hdwq sgl locks and irq handling
authorJames Smart <jsmart2021@gmail.com>
Sun, 22 Sep 2019 03:59:01 +0000 (20:59 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 1 Oct 2019 02:07:10 +0000 (22:07 -0400)
commitc0fff4ea58eddb823ae63c4accd246b17f9a3963
treee828847e2afb430289022d58847b4993803573a6
parent5e53acd83306c2fd70c5cc9a0c588e6b36cfaa58
scsi: lpfc: Fix hdwq sgl locks and irq handling

Many of the sgl-per-hdwq paths are locking with spin_lock_irq() and
spin_unlock_irq() and may unwittingly raising irq when it shouldn't. Hard
deadlocks were seen around lpfc_scsi_prep_cmnd().

Fix by converting the locks to irqsave/irqrestore.

Fixes: 5eaddb9a5459 ("scsi: lpfc: Support dynamic unbounded SGL lists on G7 hardware.")
Link: https://lore.kernel.org/r/20190922035906.10977-16-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