]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Fix nvme target failure after 2nd adapter reset
authorDick Kennedy <dick.kennedy@broadcom.com>
Wed, 23 Aug 2017 23:55:44 +0000 (16:55 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Aug 2017 02:29:42 +0000 (22:29 -0400)
commita019c92c64e9ee31f2adc4478031065b53762af2
treec18de7d10bbb1d08316dece50c32daa0bbcbae26
parent4c5310fb8e42d8a25bf9f28e749e81375060ad5b
scsi: lpfc: Fix nvme target failure after 2nd adapter reset

The nonrecovery occurred because the lpfc nvme initiator function did
not reestablish its localport creation with the nvme host transport in
lpfc_oneline.  Because of that, an NVME rport binding could not take
place.

Corrected by recreating the localport in the adapter reset recovery
routine.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_init.c