]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: lpfc: Correct panics with eh_timeout and eh_deadline
authorJames Smart <james.smart@broadcom.com>
Thu, 13 Oct 2016 22:06:15 +0000 (15:06 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 27 Feb 2017 06:13:16 +0000 (22:13 -0800)
commita2c0acc270c26dceba4d9d8cda29df1367c51261
treea22ca550fffdfc8686c74d47a7382daeffc0861f
parentd4bf23f18f1e2e51d52dd23f115cb4e0c38c400f
scsi: lpfc: Correct panics with eh_timeout and eh_deadline

Orabug: 25486030

Correct panics with eh_timeout and eh_deadline

We were having double completions on our SLI-3 version of adapters.
Solved by clearing our command pointer before calling scsi_done.

The eh paths potentially ran simulatenously and would see the non-null
value and invoke scsi_done again.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit 89533e9be08aeda5cdc4600d46c1540c7b440299)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/scsi/lpfc/lpfc_scsi.c
drivers/scsi/lpfc/lpfc_sli.c