[SCSI] megaraid_sas: Load correct raid context timeout
authoradam radford <aradford@gmail.com>
Mon, 10 Mar 2014 09:51:28 +0000 (02:51 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 15 Mar 2014 17:19:20 +0000 (10:19 -0700)
The following patch for megaraid_sas loads the correct raid context timeout
value for multpathing and clustering.

Signed-off-by: Adam Radford <aradford@gmail.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/megaraid/megaraid_sas_fp.c

index 2f3bd55..081bfff 100644 (file)
@@ -975,7 +975,10 @@ MR_BuildRaidContext(struct megasas_instance *instance,
                        regSize += stripSize;
        }
 
-       pRAID_Context->timeoutValue     = cpu_to_le16(map->raidMap.fpPdIoTimeoutSec);
+       pRAID_Context->timeoutValue =
+               cpu_to_le16(raid->fpIoTimeoutForLd ?
+                           raid->fpIoTimeoutForLd :
+                           map->raidMap.fpPdIoTimeoutSec);
        if ((instance->pdev->device == PCI_DEVICE_ID_LSI_INVADER) ||
                (instance->pdev->device == PCI_DEVICE_ID_LSI_FURY))
                pRAID_Context->regLockFlags = (isRead) ?