Skip to contentSkip to conversation

hpsa: fix bad endif placement in RAID 5 mapper code

PATCH New Stephen M. Cameron 1 participant 1 message Mar 13, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hpsa: fix bad endif placement in RAID 5 mapper code

From: Stephen M. Cameron <[email protected]>

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.

---
 drivers/scsi/hpsa.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/hpsa.c +1 -1
index a32a510..eb9af2f 100644
@@ -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 */