Skip to content

Commit

Permalink
[SCSI] hpsa: fix bad endif placement in RAID 5 mapper code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen M. Cameron authored and James Bottomley committed Mar 19, 2014
1 parent 97ea702 commit 000ff7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/hpsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 000ff7c

Please sign in to comment.