diff options
author | Stephen M. Cameron <scameron@beardog.cce.hp.com> | 2014-03-13 18:12:50 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2014-03-19 18:16:06 -0400 |
commit | 000ff7c25a15134286c8bedf3975fe79f09d1798 (patch) | |
tree | ca1d50356c14ad21249a39e651a842cecd68808c /drivers/scsi | |
parent | 97ea702bacf8ffb0b27448a46a7a66bfd9004202 (diff) |
[SCSI] hpsa: fix bad endif placement in RAID 5 mapper code
It caused the i/o request to always be counted as ineligible for
the accelerated i/o path on 32 bit systems and negatively affected
performance.
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/hpsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 9542a4463e75..cc79afd05bad 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c | |||
@@ -3828,8 +3828,8 @@ static int hpsa_scsi_ioaccel_raid_map(struct ctlr_info *h, | |||
3828 | #else | 3828 | #else |
3829 | first_group = (first_block % stripesize) / r5or6_blocks_per_row; | 3829 | first_group = (first_block % stripesize) / r5or6_blocks_per_row; |
3830 | last_group = (last_block % stripesize) / r5or6_blocks_per_row; | 3830 | last_group = (last_block % stripesize) / r5or6_blocks_per_row; |
3831 | if (first_group != last_group) | ||
3832 | #endif | 3831 | #endif |
3832 | if (first_group != last_group) | ||
3833 | return IO_ACCEL_INELIGIBLE; | 3833 | return IO_ACCEL_INELIGIBLE; |
3834 | 3834 | ||
3835 | /* Verify request is in a single row of RAID 5/6 */ | 3835 | /* Verify request is in a single row of RAID 5/6 */ |