scsi: lpfc: Fix link state reporting for trunking when adapter is offline
authorJames Smart <jsmart2021@gmail.com>
Thu, 13 Dec 2018 23:17:52 +0000 (15:17 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 20 Dec 2018 03:13:07 +0000 (22:13 -0500)
commit2977a09512c2867fba8b0e862cc96327dd93431d
tree951ab395a3801b25d6bc57acba84d1bb2b8c3a7e
parent009b7156149ab370ebd3b7477aac15a0fd3550e9
scsi: lpfc: Fix link state reporting for trunking when adapter is offline

If the adapter is taken offline, the trunk link port attributes continue to
report trunk links as up even though all links are down as the adapter is
offline.

Clear the trunk links state as part of taking the adapter offline.

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_hbadisc.c