[SCSI] mpt2sas: Fix for device scan following host reset could get stuck in a infinit...
authorSreekanth Reddy <Sreekanth.Reddy@lsi.com>
Fri, 1 Feb 2013 19:26:18 +0000 (00:56 +0530)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 24 Jun 2013 19:47:27 +0000 (12:47 -0700)
commit6241f22ca12a26ee149cbe31b27bac97dbdc8bc4
treeae206da24d2d84de56fbf596d7d35d77b0a600ce
parentca6832e91b5d851fca4ea8579915cd2b6c958117
[SCSI] mpt2sas: Fix for device scan following host reset could get stuck in a infinite loop

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>
Cc: stable@vger.kernel.org
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/mpt2sas/mpt2sas_scsih.c