mpt2sas: [Resend] Host Reset code cleanup
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.
---
Signed-off-by Kashyap Desai <[email protected]>
Signed-off-by Eric Moore <[email protected]>
---
drivers/scsi/mpt2sas/mpt2sas_base.c +3 -0
@@ -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
@@ -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