Skip to contentSkip to conversation

mpt fusion: hotplug event MPTSAS_DEL_DEVICE fix

PATCH New Kashyap, Desai 1 participant 1 message Apr 29, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mpt fusion: hotplug event MPTSAS_DEL_DEVICE fix

This is a fix for hotplug remove event.
Added code which will remove device on receiving MPTSAS_DEL_DEVICE event.
---

---

drivers/message/fusion/mptsas.c +3 -0
index b1bd68a..34e0645 100644
@@ -4029,6 +4029,9 @@ mptsas_hotplug_work(MPT_ADAPTER *ioc, struct fw_event_work *fw_event,
 		break;
 
 	case MPTSAS_DEL_DEVICE:
+		phy_info = mptsas_find_phyinfo_by_sas_address(ioc,
+		    hot_plug_info->sas_address);
+		mptsas_del_end_device(ioc, phy_info);
 		break;
 
 	case MPTSAS_DEL_PHYSDISK: