From: Dmitry Zogin Date: Tue, 12 Oct 2010 14:38:03 +0000 (-0400) Subject: b=21137 sles11 with 1.8 is slower than 1.6 sles10 for O_DIRECT single file IOR writes X-Git-Tag: v1_8_5_RC1~9 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=1242fac546a8c252dee5715bb218133795211028;p=fs%2Flustre-release.git b=21137 sles11 with 1.8 is slower than 1.6 sles10 for O_DIRECT single file IOR writes Fix __bio_add_page() in order to prevent IO split on some drivers. i=andreas.dilger i=sheng.yang --- diff --git a/lustre/kernel_patches/patches/bio_add_page.patch b/lustre/kernel_patches/patches/bio_add_page.patch new file mode 100644 index 0000000..4a9a311 --- /dev/null +++ b/lustre/kernel_patches/patches/bio_add_page.patch @@ -0,0 +1,12 @@ +--- linux-2.6.32.13-0.5.orig/fs/bio.c 2010-08-13 04:22:33.000000000 -0400 ++++ linux-2.6.32.13-0.5/fs/bio.c 2010-09-08 15:35:44.000000000 -0400 +@@ -575,8 +575,7 @@ static int __bio_add_page(struct request + * make this too complex. + */ + +- while (bio->bi_phys_segments >= queue_max_phys_segments(q) +- || bio->bi_phys_segments >= queue_max_hw_segments(q)) { ++ while (bio->bi_phys_segments >= queue_max_phys_segments(q)) { + + if (retried_segments) + return 0; diff --git a/lustre/kernel_patches/series/2.6-sles11.series b/lustre/kernel_patches/series/2.6-sles11.series index 7160e40..abb2bbc 100644 --- a/lustre/kernel_patches/series/2.6-sles11.series +++ b/lustre/kernel_patches/series/2.6-sles11.series @@ -9,3 +9,4 @@ sd_iostats-2.6.27-vanilla.patch md-mmp-unplug-dev-sles11.patch quota-support-64-bit-quota-format.patch jbd2-jcberr-2.6-sles11.patch +bio_add_page.patch