Whamcloud - gitweb
- set SCSI_MAX_PHYS_SEGMENTS to 256 for 1MB requests
authoralex <alex>
Mon, 5 Sep 2005 14:09:29 +0000 (14:09 +0000)
committeralex <alex>
Mon, 5 Sep 2005 14:09:29 +0000 (14:09 +0000)
lustre/kernel_patches/patches/scsi-max-phys-segments-256.patch [new file with mode: 0644]
lustre/kernel_patches/series/2.6-fc3.series

diff --git a/lustre/kernel_patches/patches/scsi-max-phys-segments-256.patch b/lustre/kernel_patches/patches/scsi-max-phys-segments-256.patch
new file mode 100644 (file)
index 0000000..83f4214
--- /dev/null
@@ -0,0 +1,17 @@
+Index: linux-2.6.10/include/scsi/scsi.h
+===================================================================
+--- linux-2.6.10.orig/include/scsi/scsi.h      2004-12-25 00:35:40.000000000 +0300
++++ linux-2.6.10/include/scsi/scsi.h   2005-09-05 18:05:35.000000000 +0400
+@@ -14,7 +14,11 @@
+  *    The maximum sg list length SCSI can cope with
+  *    (currently must be a power of 2 between 32 and 256)
+  */
+-#define SCSI_MAX_PHYS_SEGMENTS        MAX_PHYS_SEGMENTS
++
++/*
++ * bump it to 256 (was MAX_PHYS_SEGMENTS) for 1MB bio's -bzzz
++ */
++#define SCSI_MAX_PHYS_SEGMENTS        256
+ /*
index 012dd70..7757288 100644 (file)
@@ -32,3 +32,4 @@ nid-2.6-fc3.patch
 highmem-split-2.6.10-fc3.patch
 pag-basic-2.6.10-fc3.patch
 sd_iostats-2.6-rhel4.patch
+scsi-max-phys-segments-256.patch