]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[SCSI] hpsa: fix bad endif placement in RAID 5 mapper code
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Thu, 13 Mar 2014 22:12:50 +0000 (17:12 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 19 Mar 2014 22:16:06 +0000 (15:16 -0700)
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>
drivers/scsi/hpsa.c

index 9542a4463e7512e65997134a960634ce53ac9340..cc79afd05bad6cc1ece66c9528d786161beb0562 100644 (file)
@@ -3828,8 +3828,8 @@ static int hpsa_scsi_ioaccel_raid_map(struct ctlr_info *h,
 #else
                first_group = (first_block % stripesize) / r5or6_blocks_per_row;
                last_group = (last_block % stripesize) / r5or6_blocks_per_row;
-               if (first_group != last_group)
 #endif
+               if (first_group != last_group)
                        return IO_ACCEL_INELIGIBLE;
 
                /* Verify request is in a single row of RAID 5/6 */