Skip to contentSkip to conversation

mpt2sas: [Resend] Host Reset code cleanup

PATCH In review Kashyap, Desai 1 participant 1 message Aug 5, 2009 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 2/11 mpt2sas: [Resend] Host Reset code cleanup

Set SDEV_RUNNING from contents of the interrupt, instead of work threads. Moved rescanning the devices, updating handles, and deleting not responding devices to the same contents at the host reset handling.
---

---

drivers/scsi/mpt2sas/mpt2sas_base.c +3 -0
index f3da592..458ce80 100644
@@ -3500,5 +3500,8 @@ mpt2sas_base_hard_reset_handler(struct MPT2SAS_ADAPTER *ioc, int sleep_flag,
 	spin_lock_irqsave(&ioc->ioc_reset_in_progress_lock, flags);
 	ioc->ioc_reset_in_progress = 0;
 	spin_unlock_irqrestore(&ioc->ioc_reset_in_progress_lock, flags);
+
+	if (!r)
+		_base_reset_handler(ioc, MPT2_IOC_RUNNING);
 	return r;
 }
drivers/scsi/mpt2sas/mpt2sas_base.h +1 -0
index 286c185..f6d3cfa 100644
@@ -119,6 +119,7 @@
 #define MPT2_IOC_PRE_RESET		1 /* prior to host reset */
 #define MPT2_IOC_AFTER_RESET		2 /* just after host reset */
 #define MPT2_IOC_DONE_RESET		3 /* links re-initialized */
+#define MPT2_IOC_RUNNING		4 /* shost running */
 
 /*
  * logging format
drivers/scsi/mpt2sas/mpt2sas_scsih.c +53 -89

185 lines not on this page · raw message