James/linux-scsi,

The following patch for megaraid_sas loads the correct raid context timeout
value for multpathing and clustering.

Signed-off-by: Adam Radford <[email protected]>

diff -Naur scsi-misc.old/drivers/scsi/megaraid/megaraid_sas_fp.c
scsi-misc.new/drivers/scsi/megaraid/megaraid_sas_fp.c
--- scsi-misc.old/drivers/scsi/megaraid/megaraid_sas_fp.c 2014-03-09
21:06:56.499856130 -0700
+++ scsi-misc.new/drivers/scsi/megaraid/megaraid_sas_fp.c 2014-03-09
21:20:51.303858698 -0700
@@ -975,7 +975,10 @@
  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) ?

Attachment: megaraid_sas.patch1
Description: Binary data

Reply via email to