Whamcloud - gitweb
b=22632 also build mptlinux on SLES11
[fs/lustre-release.git] / lustre / kernel_patches / patches / blkdev_tunables-2.6-rhel5.patch
1 Index: linux-2.6.18-164.11.1/include/linux/blkdev.h
2 ===================================================================
3 --- linux-2.6.18-164.11.1.orig/include/linux/blkdev.h
4 +++ linux-2.6.18-164.11.1/include/linux/blkdev.h
5 @@ -788,10 +788,10 @@ extern void blk_free_tags(struct blk_que
6  extern void blk_rq_bio_prep(request_queue_t *, struct request *, struct bio *);
7  extern int blkdev_issue_flush(struct block_device *, sector_t *);
8  
9 -#define MAX_PHYS_SEGMENTS 128
10 -#define MAX_HW_SEGMENTS 128
11 +#define MAX_PHYS_SEGMENTS 256
12 +#define MAX_HW_SEGMENTS 256
13  #define SAFE_MAX_SECTORS 255
14 -#define BLK_DEF_MAX_SECTORS 1024
15 +#define BLK_DEF_MAX_SECTORS 2048
16  
17  #define MAX_SEGMENT_SIZE       65536
18  
19 Index: linux-2.6.18-164.11.1/include/scsi/scsi_host.h
20 ===================================================================
21 --- linux-2.6.18-164.11.1.orig/include/scsi/scsi_host.h
22 +++ linux-2.6.18-164.11.1/include/scsi/scsi_host.h
23 @@ -30,7 +30,7 @@ struct blk_queue_tags;
24   *      used in one scatter-gather request.
25   */
26  #define SG_NONE 0
27 -#define SG_ALL 0xff
28 +#define SG_ALL 256
29  
30  
31  #define DISABLE_CLUSTERING 0
32 Index: linux-2.6.18-164.11.1/drivers/scsi/lpfc/lpfc.h
33 ===================================================================
34 --- linux-2.6.18-164.11.1.orig/drivers/scsi/lpfc/lpfc.h
35 +++ linux-2.6.18-164.11.1/drivers/scsi/lpfc/lpfc.h
36 @@ -38,7 +38,7 @@
37  #define LPFC_MAX_NS_RETRY      3       /* Number of retry attempts to contact
38                                            the NameServer  before giving up. */
39  #define LPFC_CMD_PER_LUN       3       /* max outstanding cmds per lun */
40 -#define LPFC_DEFAULT_SG_SEG_CNT        64      /* sg element count per scsi cmnd */
41 +#define LPFC_DEFAULT_SG_SEG_CNT        256     /* sg element count per scsi cmnd */
42  #define LPFC_MAX_SG_SEG_CNT    256     /* sg element count per scsi cmnd */
43  #define LPFC_IOCB_LIST_CNT     2250    /* list of IOCBs for fast-path usage. */
44  #define LPFC_Q_RAMP_UP_INTERVAL 120     /* lun q_depth ramp up interval */