Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / kernel_patches / patches / blkdev_tunables-2.6-sles10.patch
1 Index: linux-2.6.16.54-0.2.3/include/scsi/scsi_host.h
2 ===================================================================
3 --- linux-2.6.16.54-0.2.3.orig/include/scsi/scsi_host.h
4 +++ linux-2.6.16.54-0.2.3/include/scsi/scsi_host.h
5 @@ -28,7 +28,7 @@ struct scsi_transport_template;
6   *      used in one scatter-gather request.
7   */
8  #define SG_NONE 0
9 -#define SG_ALL 0xff
10 +#define SG_ALL 256
11  
12  
13  #define DISABLE_CLUSTERING 0
14 Index: linux-2.6.16.54-0.2.3/drivers/scsi/scsi_lib.c
15 ===================================================================
16 --- linux-2.6.16.54-0.2.3.orig/drivers/scsi/scsi_lib.c
17 +++ linux-2.6.16.54-0.2.3/drivers/scsi/scsi_lib.c
18 @@ -1573,6 +1573,7 @@ struct request_queue *scsi_alloc_queue(s
19  
20         blk_queue_prep_rq(q, scsi_prep_fn);
21  
22 +       blk_queue_max_phys_segments(q, SCSI_MAX_PHYS_SEGMENTS);
23         blk_queue_max_hw_segments(q, shost->sg_tablesize);
24         blk_queue_max_sectors(q, shost->max_sectors);
25         blk_queue_bounce_limit(q, scsi_calculate_bounce_limit(shost));