]> git.baikalelectronics.ru Git - kernel.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)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Nov 2016 22:29:50 +0000 (17:29 -0500)
commit5b4d77529b3bafe9911bf9b788a2867576b1071d
tree67e4eb1940c21bd18e40f321673f7f56fb74b9c9
parentd87515cdb037e850b514aacb26c8ed658a30f75e
scsi: lpfc: Correct panics with eh_timeout and eh_deadline

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>
drivers/scsi/lpfc/lpfc_scsi.c
drivers/scsi/lpfc/lpfc_sli.c