All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Vesely <jvesely@redhat.com>
To: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Jan Vesely <jvesely@redhat.com>,
	Nagalakshmi Nandigama <Nagalakshmi.Nandigama@lsi.com>,
	Sreekanth Reddy <Sreekanth.Reddy@lsi.com>,
	Tomas Henzl <thenzl@redhat.com>
Subject: [PATCH 2/2] mpt3sas: Remove phys on topology change
Date: Thu,  1 Aug 2013 12:01:31 +0200	[thread overview]
Message-ID: <1375351291-27107-3-git-send-email-jvesely@redhat.com> (raw)
In-Reply-To: <1375351291-27107-1-git-send-email-jvesely@redhat.com>

From: Jan Vesely <jvesely@redhat.com>

CC: Nagalakshmi Nandigama <Nagalakshmi.Nandigama@lsi.com>
CC: Sreekanth Reddy <Sreekanth.Reddy@lsi.com>
CC: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Jan Vesely <jvesely@redhat.com>
---
 drivers/scsi/mpt3sas/mpt3sas_transport.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/mpt3sas/mpt3sas_transport.c b/drivers/scsi/mpt3sas/mpt3sas_transport.c
index 87ca2b7..45bc98e 100644
--- a/drivers/scsi/mpt3sas/mpt3sas_transport.c
+++ b/drivers/scsi/mpt3sas/mpt3sas_transport.c
@@ -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 =
-- 
1.7.1


  parent reply	other threads:[~2013-08-01 10:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-01 10:01 [PATCH 0/2] mpt{2,3}sas remove disconnected phys on topology change Jan Vesely
2013-08-01 10:01 ` [PATCH 1/2] mpt2sas: Remove " Jan Vesely
2013-08-01 10:01 ` Jan Vesely [this message]
2013-08-26 10:22 ` [PATCH 0/2] mpt{2,3}sas remove disconnected " Reddy, Sreekanth
2013-08-26 10:22   ` Reddy, Sreekanth
2014-12-02 13:18 ` Sreekanth Reddy
2014-12-02 14:07   ` Tomas Henzl
2014-12-02 14:14     ` Sreekanth Reddy
2014-12-03  9:28     ` Christoph Hellwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1375351291-27107-3-git-send-email-jvesely@redhat.com \
    --to=jvesely@redhat.com \
    --cc=Nagalakshmi.Nandigama@lsi.com \
    --cc=Sreekanth.Reddy@lsi.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=thenzl@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.