Commit 0d4c24cc1bf62e75fdb31e73c68daa50e0877564
Committed by
James Bottomley
1 parent
775bf27738
Exists in
master
and in
20 other branches
[SCSI] megaraid_sas: Fix reglockFlags for degraded raid5/6
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@gmail.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff
drivers/scsi/megaraid/megaraid_sas_fp.c
... | ... | @@ -282,7 +282,9 @@ |
282 | 282 | else { |
283 | 283 | *pDevHandle = MR_PD_INVALID; /* set dev handle as invalid. */ |
284 | 284 | if ((raid->level >= 5) && |
285 | - (instance->pdev->device != PCI_DEVICE_ID_LSI_INVADER)) | |
285 | + ((instance->pdev->device != PCI_DEVICE_ID_LSI_INVADER) || | |
286 | + (instance->pdev->device == PCI_DEVICE_ID_LSI_INVADER && | |
287 | + raid->regTypeReqOnRead != REGION_TYPE_UNUSED))) | |
286 | 288 | pRAID_Context->regLockFlags = REGION_TYPE_EXCLUSIVE; |
287 | 289 | else if (raid->level == 1) { |
288 | 290 | /* Get alternate Pd. */ |