[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1361358592-13256-1-git-send-email-xtfeng@gmail.com>
Date:	Wed, 20 Feb 2013 19:09:52 +0800
From:	Xiaotian Feng <xtfeng@...il.com>
To:	Nagalakshmi.Nandigama@....com
Cc:	Xiaotian Feng <xtfeng@...il.com>,
	Xiaotian Feng <dannyfeng@...cent.com>,
	Sreekanth Reddy <Sreekanth.Reddy@....com>, support@....com,
	DL-MPTFusionLinux@....com, linux-scsi@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: [PATCH] [SCSI] mptfusion: delete rphy info in mptsas_del_end_device()
Otherwise, we might get wrong rphy attributes through sysfs when
a end device is not responding.
Signed-off-by: Xiaotian Feng <dannyfeng@...cent.com>
Cc: Nagalakshmi Nandigama <Nagalakshmi.Nandigama@....com>
Cc: Sreekanth Reddy <Sreekanth.Reddy@....com>
Cc: support@....com
Cc: DL-MPTFusionLinux@....com
Cc: linux-scsi@...r.kernel.org
Cc: linux-kernel@...r.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
Powered by blists - more mailing lists