All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [SCSI] mptfusion: delete rphy info in mptsas_del_end_device()
@ 2013-02-20 11:09 Xiaotian Feng
  0 siblings, 0 replies; only message in thread
From: Xiaotian Feng @ 2013-02-20 11:09 UTC (permalink / raw)
  To: Nagalakshmi.Nandigama
  Cc: Xiaotian Feng, Xiaotian Feng, Sreekanth Reddy, support,
	DL-MPTFusionLinux, linux-scsi, linux-kernel

Otherwise, we might get wrong rphy attributes through sysfs when
a end device is not responding.

Signed-off-by: Xiaotian Feng <dannyfeng@tencent.com>
Cc: Nagalakshmi Nandigama <Nagalakshmi.Nandigama@lsi.com>
Cc: Sreekanth Reddy <Sreekanth.Reddy@lsi.com>
Cc: support@lsi.com
Cc: DL-MPTFusionLinux@lsi.com
Cc: linux-scsi@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
 drivers/message/fusion/mptsas.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c
index fa43c39..4845d18 100644
--- a/drivers/message/fusion/mptsas.c
+++ b/drivers/message/fusion/mptsas.c
@@ -1572,6 +1572,8 @@ mptsas_del_end_device(MPT_ADAPTER *ioc, struct mptsas_phyinfo *phy_info)
 	     port->port_identifier, (unsigned long long)sas_address);
 	sas_port_delete(port);
 	mptsas_set_port(ioc, phy_info, NULL);
+	sas_rphy_delete(rphy);
+	mptsas_set_rphy(ioc, phy_info, NULL);
 	mptsas_port_delete(ioc, phy_info->port_details);
 }
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-02-20 11:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-20 11:09 [PATCH] [SCSI] mptfusion: delete rphy info in mptsas_del_end_device() Xiaotian Feng

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.