From a8209f8c79f3b037c6dc47ccb9eb5f0fcf4ffe78 Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 5 Sep 2005 14:09:29 +0000 Subject: [PATCH] - set SCSI_MAX_PHYS_SEGMENTS to 256 for 1MB requests --- .../patches/scsi-max-phys-segments-256.patch | 17 +++++++++++++++++ lustre/kernel_patches/series/2.6-fc3.series | 1 + 2 files changed, 18 insertions(+) create mode 100644 lustre/kernel_patches/patches/scsi-max-phys-segments-256.patch 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 index 0000000..83f4214 --- /dev/null +++ b/lustre/kernel_patches/patches/scsi-max-phys-segments-256.patch @@ -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 + + + /* diff --git a/lustre/kernel_patches/series/2.6-fc3.series b/lustre/kernel_patches/series/2.6-fc3.series index 012dd70..7757288 100644 --- a/lustre/kernel_patches/series/2.6-fc3.series +++ b/lustre/kernel_patches/series/2.6-fc3.series @@ -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 -- 1.8.3.1