mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-07 07:08:07 +00:00
[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>
This commit is contained in:
parent
97ea702bac
commit
000ff7c25a
1 changed files with 1 additions and 1 deletions
|
@ -3828,8 +3828,8 @@ static int hpsa_scsi_ioaccel_raid_map(struct ctlr_info *h,
|
||||||
#else
|
#else
|
||||||
first_group = (first_block % stripesize) / r5or6_blocks_per_row;
|
first_group = (first_block % stripesize) / r5or6_blocks_per_row;
|
||||||
last_group = (last_block % stripesize) / r5or6_blocks_per_row;
|
last_group = (last_block % stripesize) / r5or6_blocks_per_row;
|
||||||
if (first_group != last_group)
|
|
||||||
#endif
|
#endif
|
||||||
|
if (first_group != last_group)
|
||||||
return IO_ACCEL_INELIGIBLE;
|
return IO_ACCEL_INELIGIBLE;
|
||||||
|
|
||||||
/* Verify request is in a single row of RAID 5/6 */
|
/* Verify request is in a single row of RAID 5/6 */
|
||||||
|
|
Loading…
Add table
Reference in a new issue