Skip to contentSkip to conversation

mptfusion: Added missing reset for ioc_reset_in_progress in SoftReset

PATCH New Kashyap, Desai 1 participant 1 message Jun 17, 2010

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

PATCH 7/8 mptfusion: Added missing reset for ioc_reset_in_progress in SoftReset

Added missing part which will reset ioc_reset_in_progress before returning from SoftResetHandler.

---

drivers/message/fusion/mptbase.c +1 -0
index 49005e1..d0855f2 100644
@@ -6974,6 +6974,7 @@ mpt_SoftResetHandler(MPT_ADAPTER *ioc, int sleepFlag)
 
 	spin_lock_irqsave(&ioc->taskmgmt_lock, flags);
 	if (ioc->taskmgmt_in_progress) {
+		ioc->ioc_reset_in_progress = 0;
 		spin_unlock_irqrestore(&ioc->taskmgmt_lock, flags);
 		return -1;
 	}