1 Index: linux-3.10.0-495.el7.x86_64/block/blk-settings.c
2 ===================================================================
3 --- linux-3.10.0-495.el7.x86_64.orig/block/blk-settings.c
4 +++ linux-3.10.0-495.el7.x86_64/block/blk-settings.c
5 @@ -19,6 +19,12 @@ EXPORT_SYMBOL(blk_max_low_pfn);
7 unsigned long blk_max_pfn;
9 +int default_max_sectors = BLK_DEF_MAX_SECTORS;
10 +module_param(default_max_sectors, int, 0);
12 +int default_max_segments = BLK_MAX_SEGMENTS;
13 +module_param(default_max_segments, int, 0);
16 * blk_queue_prep_rq - set a prepare_request function for queue
18 @@ -108,7 +114,7 @@ EXPORT_SYMBOL_GPL(blk_queue_lld_busy);
20 void blk_set_default_limits(struct queue_limits *lim)
22 - lim->max_segments = BLK_MAX_SEGMENTS;
23 + lim->max_segments = default_max_segments;
24 lim->max_integrity_segments = 0;
25 lim->seg_boundary_mask = BLK_SEG_BOUNDARY_MASK;
27 @@ -268,7 +274,7 @@ void blk_limits_max_hw_sectors(struct qu
29 limits->max_hw_sectors = max_hw_sectors;
30 max_sectors = min_not_zero(max_hw_sectors, limits->max_dev_sectors);
31 - max_sectors = min_t(unsigned int, max_sectors, BLK_DEF_MAX_SECTORS);
32 + max_sectors = min_t(unsigned int, max_sectors, default_max_sectors);
33 limits->max_sectors = max_sectors;
35 EXPORT_SYMBOL(blk_limits_max_hw_sectors);
36 Index: linux-3.10.0-495.el7.x86_64/drivers/message/fusion/Kconfig
37 ===================================================================
38 --- linux-3.10.0-495.el7.x86_64.orig/drivers/message/fusion/Kconfig
39 +++ linux-3.10.0-495.el7.x86_64/drivers/message/fusion/Kconfig
40 @@ -61,9 +61,9 @@ config FUSION_SAS
44 - int "Maximum number of scatter gather entries (16 - 128)"
47 + int "Maximum number of scatter gather entries (16 - 256)"
51 This option allows you to specify the maximum number of scatter-
52 gather entries per I/O. The driver default is 128, which matches
53 Index: linux-3.10.0-495.el7.x86_64/drivers/message/fusion/mptbase.h
54 ===================================================================
55 --- linux-3.10.0-495.el7.x86_64.orig/drivers/message/fusion/mptbase.h
56 +++ linux-3.10.0-495.el7.x86_64/drivers/message/fusion/mptbase.h
58 * Set the MAX_SGE value based on user input.
60 #ifdef CONFIG_FUSION_MAX_SGE
61 -#if CONFIG_FUSION_MAX_SGE < 16
62 +#if CONFIG_FUSION_MAX_SGE < 16
63 #define MPT_SCSI_SG_DEPTH 16
64 -#elif CONFIG_FUSION_MAX_SGE > 128
65 -#define MPT_SCSI_SG_DEPTH 128
66 +#elif CONFIG_FUSION_MAX_SGE > 256
67 +#define MPT_SCSI_SG_DEPTH 256
69 #define MPT_SCSI_SG_DEPTH CONFIG_FUSION_MAX_SGE