scsi: lpfc: move placement of target destroy on driver detach
authorJames Smart <jsmart2021@gmail.com>
Tue, 30 Jan 2018 23:58:47 +0000 (15:58 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 12 Feb 2018 16:43:22 +0000 (11:43 -0500)
commit281d61902ffbab47901f8616a38a45144627dd9e
tree8aedb155dc58257f1c345d9697b2d1710198578e
parentc176ffa0841c632593c5007f1d1c9ed126481daa
scsi: lpfc: move placement of target destroy on driver detach

Ensure nvme localports/targetports are torn down before dismantling the
adapter sli interface on driver detachment.  This aids leaving
interfaces live while nvme may be making callbacks to abort it.

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