linux/drivers/scsi/mpt2sas
Kashyap, Desai f3eedd698e [SCSI] mpt2sas: Redesign Raid devices event handling using pd_handles per HBA
Actual problem :
Driver  may receiving the top level expander
removal event prior to all the individual PD removal events, hence the
driver is breaking down all the PDs in advanced to the actaul PD UNHIDE
event. Driver sends multiple
Target Resets to the same volume handle for each individual PD removal.

FIX DESCRIPTION:
To fix this issue, the entire PD device handshake protocal has to be
moved to interrupt context so the breakdown occurs immediately after the
actual UNHIDE event arrives.  The driver will only issue one Target Reset to
the volume handle, occurring after the FAILED or MISSING volume status
event arrives from interrupt context. For the PD UNHIDE event, the driver
will issue target resets to the PD handles, followed by OP_REMOVE.  The
driver will set the "deteleted" flag during interrupt context.  A "pd_handle"
bitmask was introduced so the driver has a list of known pds during entire
life of the PD; this replaces the "hidden_raid_component" flag handle in
the sas_device object.  Each bit in the bitmask represents a device handle.
The bit in the bitmask would be toggled ON/OFF when the HIDE/UNHIDE
events arrive; also this pd_handle bitmask would bould be refreshed
across host resets.

Here we kept older behavior of sending target reset to volume when there is
a single drive pull, wait for the reply, then send target resets
to the PDs.  We kept this behavior so the driver will
behave the same for older versions of firmware.

Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-07-27 12:02:19 -05:00
..
mpi [SCSI] mpt2sas: MPI header version N is updated. 2010-07-27 12:02:13 -05:00
Kconfig [SCSI] mpt2sas: Copyright 2010. 2010-04-11 09:24:02 -05:00
Makefile [SCSI] mpt2sas v00.100.11.15 2009-03-13 16:08:49 -05:00
mpt2sas_base.c [SCSI] mpt2sas: Redesign Raid devices event handling using pd_handles per HBA 2010-07-27 12:02:19 -05:00
mpt2sas_base.h [SCSI] mpt2sas: Redesign Raid devices event handling using pd_handles per HBA 2010-07-27 12:02:19 -05:00
mpt2sas_config.c [SCSI] mpt2sas: print level KERN_DEBUG is replaced by KERN_INFO 2010-07-27 12:02:16 -05:00
mpt2sas_ctl.c [SCSI] mpt2sas: Tie a log info message to a specific PHY. 2010-07-27 12:02:17 -05:00
mpt2sas_ctl.h [SCSI] mpt2sas: Copyright 2010. 2010-04-11 09:24:02 -05:00
mpt2sas_debug.h [SCSI] mpt2sas: Copyright 2010. 2010-04-11 09:24:02 -05:00
mpt2sas_scsih.c [SCSI] mpt2sas: Redesign Raid devices event handling using pd_handles per HBA 2010-07-27 12:02:19 -05:00
mpt2sas_transport.c [SCSI] mpt2sas: print level KERN_DEBUG is replaced by KERN_INFO 2010-07-27 12:02:16 -05:00