Skip to content

Commit e2c7b43

Browse files
yadan-fanmartinkpetersen
authored andcommitted
scsi: hpsa: limit transfer length to 1MB
The hpsa firmware will bypass the cache for any request larger than 1MB, so we should cap the request size to avoid any performance degradation in kernels later than v4.3 This degradation is caused from d2be537, which changed max_sectors_kb to 1280k, but the hardware is able to work fine with it, so the true fix should be from hpsa driver. Signed-off-by: Yadan Fan <ydfan@suse.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Acked-by: Don Brace <don.brace@microsemi.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 6f37e21 commit e2c7b43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/hpsa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ static struct scsi_host_template hpsa_driver_template = {
938938
#endif
939939
.sdev_attrs = hpsa_sdev_attrs,
940940
.shost_attrs = hpsa_shost_attrs,
941-
.max_sectors = 8192,
941+
.max_sectors = 1024,
942942
.no_write_same = 1,
943943
};
944944

0 commit comments

Comments
 (0)