From 000ff7c25a15134286c8bedf3975fe79f09d1798 Mon Sep 17 00:00:00 2001 From: "Stephen M. Cameron" Date: Thu, 13 Mar 2014 17:12:50 -0500 Subject: [PATCH] [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 Signed-off-by: James Bottomley --- drivers/scsi/hpsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, #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 */ -- GitLab