Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / kernel_patches / patches / blkdev_tunables-2.4.21-chaos.patch
1 Index: linux-2.4.21/drivers/addon/qla2200/qla2x00.h
2 ===================================================================
3 --- linux-2.4.21.orig/drivers/addon/qla2200/qla2x00.h   2005-06-01 22:51:57.000000000 -0400
4 +++ linux-2.4.21/drivers/addon/qla2200/qla2x00.h        2005-06-01 23:06:10.592857440 -0400
5 @@ -3275,7 +3275,7 @@
6  /* Kernel version specific template additions */
7  
8  /* Number of segments 1 - 65535 */
9 -#define SG_SEGMENTS     32             /* Cmd entry + 6 continuations */
10 +#define SG_SEGMENTS     512            /* Cmd entry + 6 continuations */
11  
12  /*
13   * Scsi_Host_template (see hosts.h) 
14 @@ -3289,7 +3289,7 @@
15   *
16   */
17  #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,8)
18 -#define TEMPLATE_MAX_SECTORS   max_sectors: 512,
19 +#define TEMPLATE_MAX_SECTORS   max_sectors: 2048,
20  #else
21  #define TEMPLATE_MAX_SECTORS 
22  #endif
23 Index: linux-2.4.21/include/linux/blkdev.h
24 ===================================================================
25 --- linux-2.4.21.orig/include/linux/blkdev.h    2005-06-01 22:51:55.000000000 -0400
26 +++ linux-2.4.21/include/linux/blkdev.h 2005-06-01 23:07:26.186365480 -0400
27 @@ -262,10 +262,10 @@
28  
29  extern char * blkdev_varyio[MAX_BLKDEV];
30  
31 -#define MAX_SEGMENTS 128
32 +#define MAX_SEGMENTS 256
33  #define MAX_SECTORS 255
34  /* General-case limit for superbh size: */
35 -#define MAX_SUPERBH 32768      /* must fit info ->b_size right now */
36 +#define MAX_SUPERBH (1<<20)    /* must fit info ->b_size right now */
37  
38  /* Limit for superbh when we're certain it cannot be bounce-buffered: */
39  #define MAX_SUPERBH_NOBOUNCE (1024*1024) /* must fit info ->b_size right now */
40 Index: linux-2.4.21/mm/highmem.c
41 ===================================================================
42 --- linux-2.4.21.orig/mm/highmem.c      2005-06-01 22:51:50.000000000 -0400
43 +++ linux-2.4.21/mm/highmem.c   2005-06-01 23:06:10.594857136 -0400
44 @@ -474,7 +474,7 @@
45  /*
46   * FIXME: assuming PAGE_SIZE buffer_heads
47   */
48 -#define SUPERBH_MAX_USERS      (POOL_SIZE * PAGE_SIZE / MAX_SUPERBH)
49 +#define SUPERBH_MAX_USERS      max(POOL_SIZE * PAGE_SIZE / MAX_SUPERBH, 1)
50  
51  static int superbh_users;
52  static DECLARE_WAIT_QUEUE_HEAD(superbh_wait);