mpt2sas: Fix for system hang when discovery in progress
commitac310457b4fd7634983788faf0c4f29cd2d5384b
authornagalakshmi.nandigama@lsi.com <nagalakshmi.nandigama@lsi.com>
Fri, 21 Oct 2011 04:36:33 +0000 (21 10:06 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:37:02 +0000 (11 09:37 -0800)
treefb554523df43bbfda787fa52306575f64781c2df
parent6fffe112243a02792d352087d32bf05ccb2cf90d
mpt2sas: Fix for system hang when discovery in progress

commit 0167ac67ff6f35bf2364f7672c8012b0cd40277f upstream.

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>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/mpt2sas/mpt2sas_scsih.c