[SCSI] mpt3sas: Remove phys on topology change
authorJan Vesely <jvesely@redhat.com>
Thu, 1 Aug 2013 10:01:31 +0000 (12:01 +0200)
committerJames Bottomley <JBottomley@Parallels.com>
Tue, 3 Sep 2013 14:27:59 +0000 (07:27 -0700)
Signed-off-by: Jan Vesely <jvesely@redhat.com>
Acked-by: Sreekanth Reddy <Sreekanth.Reddy@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/mpt3sas/mpt3sas_transport.c

index dcadd56..e771a88 100644 (file)
@@ -1003,9 +1003,12 @@ mpt3sas_transport_update_links(struct MPT3SAS_ADAPTER *ioc,
                    &mpt3sas_phy->remote_identify);
                _transport_add_phy_to_an_existing_port(ioc, sas_node,
                    mpt3sas_phy, mpt3sas_phy->remote_identify.sas_address);
-       } else
+       } else {
                memset(&mpt3sas_phy->remote_identify, 0 , sizeof(struct
                    sas_identify));
+               _transport_del_phy_from_an_existing_port(ioc, sas_node,
+                   mpt3sas_phy);
+       }
 
        if (mpt3sas_phy->phy)
                mpt3sas_phy->phy->negotiated_linkrate =