Whamcloud - gitweb
LU-17705 ptlrpc: replace synchronize_rcu() with rcu_barrier()
[fs/lustre-release.git] / lustre / kernel_patches / patches / blkdev_tunables-3.9.patch
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);
6  
7  unsigned long blk_max_pfn;
8  
9 +int default_max_sectors = BLK_DEF_MAX_SECTORS;
10 +module_param(default_max_sectors, int, 0);
11 +
12 +int default_max_segments = BLK_MAX_SEGMENTS;
13 +module_param(default_max_segments, int, 0);
14 +
15  /**
16   * blk_queue_prep_rq - set a prepare_request function for queue
17   * @q:         queue
18 @@ -108,7 +114,7 @@ EXPORT_SYMBOL_GPL(blk_queue_lld_busy);
19   */
20  void blk_set_default_limits(struct queue_limits *lim)
21  {
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;
26         if (lim->limits_aux)
27 @@ -268,7 +274,7 @@ void blk_limits_max_hw_sectors(struct qu
28  
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;
34  }
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
41           LSISAS1078
42  
43  config FUSION_MAX_SGE
44 -       int "Maximum number of scatter gather entries (16 - 128)"
45 -       default "128"
46 -       range 16 128
47 +       int "Maximum number of scatter gather entries (16 - 256)"
48 +       default "256"
49 +       range 16 256
50         help
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
57 @@ -166,10 +166,10 @@
58   * Set the MAX_SGE value based on user input.
59   */
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
68  #else
69  #define MPT_SCSI_SG_DEPTH      CONFIG_FUSION_MAX_SGE
70  #endif