James/linux-scsi, The following patch for megaraid_sas fixes the reglockFlags field for degraded raid5/6 for MR9360/9380, which will result in a performance improvement. Signed-off-by: Adam Radford <aradford@xxxxxxxxx> diff -Naur scsi-misc-2.6/drivers/scsi/megaraid/megaraid_sas_fp.c scsi-misc-2.6.new/drivers/scsi/megaraid/megaraid_sas_fp.c --- scsi-misc-2.6/drivers/scsi/megaraid/megaraid_sas_fp.c 2012-02-06 12:50:20.000000000 -0800 +++ scsi-misc-2.6.new/drivers/scsi/megaraid/megaraid_sas_fp.c 2012-01-06 14:58:15.364307850 -0800 @@ -282,7 +282,9 @@ else { *pDevHandle = MR_PD_INVALID; /* set dev handle as invalid. */ if ((raid->level >= 5) && - (instance->pdev->device != PCI_DEVICE_ID_LSI_INVADER)) + ((instance->pdev->device != PCI_DEVICE_ID_LSI_INVADER) || + (instance->pdev->device == PCI_DEVICE_ID_LSI_INVADER && + raid->regTypeReqOnRead != REGION_TYPE_UNUSED))) pRAID_Context->regLockFlags = REGION_TYPE_EXCLUSIVE; else if (raid->level == 1) { /* Get alternate Pd. */
Attachment:
megaraid_sas.patch1
Description: Binary data