Hello all, This patchset attempts to address problems we've been having with panics due to memory corruption from the mpt2sas driver. I will provide a similar set of fixes for mpt3sas, since we see similar issues there as well. "Porting" this to mpt3sas will be trivial since the part of the driver I'm touching is nearly identical between the two, so I thought it would be simpler to review a patch against mpt2sas alone at first. I've tested this on a handful of large storage boxes over the past few weeks, so far it seems to have completely eliminated the memory corruption panics. Thanks, Calvin Total diffstat: drivers/scsi/mpt2sas/mpt2sas_base.h | 20 +- drivers/scsi/mpt2sas/mpt2sas_scsih.c | 482 +++++++++++++++++++++---------- drivers/scsi/mpt2sas/mpt2sas_transport.c | 12 +- 3 files changed, 359 insertions(+), 155 deletions(-) Patches: * [PATCH 1/6] Add refcount to sas_device struct * [PATCH 2/6] Refactor code to use new sas_device refcount * [PATCH 3/6] Fix unsafe sas_device_list usage * [PATCH 4/6] Add refcount to fw_event_work struct * [PATCH 5/6] Refactor code to use new fw_event refcount * [PATCH 6/6] Fix unsafe fw_event_list usage -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html