mpt2sas : [Resend] Rescan topology from Interrupt context instead of work thread
PATCH 1/7 mpt2sas : [Resend] Rescan topology from Interrupt context instead of work thread
Following host reset its possible that the controller firmware could assign new handles for devices, as well as adding or deleting devices. There is code in the driver that will rescan the topology folowing host reset; updating device handles, and remove devices that are no longer responding. This patch will improve the responsivness by moving this rescaning from the delayed hotplug worker thread to immediately following the host reset.
Signed-off-by Kashyap Desai <[email protected]>
Reviewed-by Eric Moore <[email protected]>
---
drivers/scsi/mpt2sas/mpt2sas_base.c +3 -0
@@ -3536,5 +3536,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