]> www.infradead.org Git - users/jedix/linux-maple.git/commit
[SCSI] mpt2sas: Fix for Panic when inactive volume is tried deleting
authornagalakshmi.nandigama@lsi.com <nagalakshmi.nandigama@lsi.com>
Fri, 21 Oct 2011 04:38:07 +0000 (10:08 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 16 Dec 2011 16:49:14 +0000 (11:49 -0500)
commit2a31a73f6b31552c1f3920ef854a09160abac06c
tree92db8709fbf689d882dbefbb6291b90451da1712
parent10406c7e99760aafcede8d40e8705e1423162ccb
[SCSI] mpt2sas: Fix for Panic when inactive volume is tried deleting

The driver was setting the action to MPI2_CONFIG_ACTION_PAGE_READ_CURRENT,
which only returns active volumes. In order to get info on inactive volumes,
the driver needs to change the action to
MPI2_RAID_PGAD_FORM_GET_NEXT_CONFIGNUM, and traverse each config till the
iocstatus is MPI2_IOCSTATUS_CONFIG_INVALID_PAGE returned.
Added a change in the driver to remove the instance of
sas_device object when the driver returns "1" from the slave_configure callback.
Also fixed code to report the hot spares to the operating system with a /dev/sg
assigned.

Signed-off-by: Nagalakshmi Nandigama <nagalakshmi.nandigama@lsi.com>
Cc: stable@kernel.org
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/mpt2sas/mpt2sas_config.c
drivers/scsi/mpt2sas/mpt2sas_scsih.c