[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)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 30 Oct 2011 08:46:26 +0000 (12:46 +0400)
commit0167ac67ff6f35bf2364f7672c8012b0cd40277f
tree7759b2fc49358380740d70198f3238431c53e379
parent921cd8024b908f8f49f772c8d3a02381b4db2ed2
[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