mpt2sas: Fix for device scan following host reset could get stuck in a infinite loop
authorSreekanth Reddy <Sreekanth.Reddy@lsi.com>
Fri, 1 Feb 2013 19:26:18 +0000 (00:56 +0530)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 27 Jul 2013 04:34:17 +0000 (05:34 +0100)
commite4498ad1ef9c7b3673efbeef5af0a3ef61a0ce07
treed63646e4d17a6f6592be17b81dce250fae3af678
parent93cfcb8c998e3fe2c075fa61ab28f7b018e5049a
mpt2sas: Fix for device scan following host reset could get stuck in a infinite loop

commit 6241f22ca12a26ee149cbe31b27bac97dbdc8bc4 upstream.

Modified device scan routine so each configuration page read breaks from the
while loop when the ioc_status is not equal to MPI2_IOCSTATUS_SUCCESS.

[jejb: checkpatch fixes]
Signed-off-by: Sreekanth Reddy <Sreekanth.Reddy@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
[bwh: Backported to 3.2; adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/scsi/mpt2sas/mpt2sas_scsih.c