Whamcloud - gitweb
LU-354 test: Change dev_set_rdonly() check to warning
[fs/lustre-release.git] / lustre / kernel_patches / patches / mpt-fusion-max-sge-rhel6.patch
1 Increase MAX_SGE for fusion mpt driver.
2
3 Index: linux-2.6.32.i386/drivers/message/fusion/Kconfig
4 ===================================================================
5 --- linux-2.6.32.i386.orig/drivers/message/fusion/Kconfig       2009-12-03 09:21:21.000000000 +0530
6 +++ linux-2.6.32.i386/drivers/message/fusion/Kconfig    2010-03-16 16:45:08.000000000 +0530
7 @@ -61,9 +61,9 @@
8           LSISAS1078
9  
10  config FUSION_MAX_SGE
11 -       int "Maximum number of scatter gather entries (16 - 128)"
12 -       default "128"
13 -       range 16 128
14 +       int "Maximum number of scatter gather entries (16 - 256)"
15 +       default "256"
16 +       range 16 256
17         help
18           This option allows you to specify the maximum number of scatter-
19           gather entries per I/O. The driver default is 128, which matches
20 Index: linux-2.6.32.i386/drivers/message/fusion/mptbase.h
21 ===================================================================
22 --- linux-2.6.32.i386.orig/drivers/message/fusion/mptbase.h     2009-12-03 09:21:21.000000000 +0530
23 +++ linux-2.6.32.i386/drivers/message/fusion/mptbase.h  2010-03-16 16:46:54.000000000 +0530
24 @@ -165,10 +165,10 @@
25   * Set the MAX_SGE value based on user input.
26   */
27  #ifdef CONFIG_FUSION_MAX_SGE
28 -#if CONFIG_FUSION_MAX_SGE  < 16
29 +#if CONFIG_FUSION_MAX_SGE < 16
30  #define MPT_SCSI_SG_DEPTH      16
31 -#elif CONFIG_FUSION_MAX_SGE  > 128
32 -#define MPT_SCSI_SG_DEPTH      128
33 +#elif CONFIG_FUSION_MAX_SGE > 256
34 +#define MPT_SCSI_SG_DEPTH      256
35  #else
36  #define MPT_SCSI_SG_DEPTH      CONFIG_FUSION_MAX_SGE
37  #endif