]> www.infradead.org Git - users/jedix/linux-maple.git/commit
[SCSI] mpt2sas: Fix for system hang when discovery in progress
authornagalakshmi.nandigama@lsi.com <nagalakshmi.nandigama@lsi.com>
Fri, 21 Oct 2011 04:36:33 +0000 (10:06 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 16 Dec 2011 16:48:49 +0000 (11:48 -0500)
commit7cfe54d55e50fc3a011cb329a88d227dfe7cb2c5
treee43dbf04f66743f0e57635f4990b184d5b04bfe0
parent340094fae2b6079d2d162a5aa05924d6eaf17cdc
[SCSI] mpt2sas: Fix for system hang when discovery in progress

Fix for issue : While discovery is in progress, hot unplug and hot plug of
enclosure connected to the controller card is causing system to hang.

When a device is in the process of being detected at driver load time then
if it is removed, the device that is no longer present will not be added
to the list. So the code in _scsih_probe_sas() is rearranged as such so
the devices that failed to be detected are not added to the list.

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_scsih.c