[Pkg-lustre-svn-commit] updated: [b950455] Including one line fix for data corruption issue on OST

Patrick Winnertz winnie at debian.org
Thu Sep 10 11:47:34 UTC 2009


The following commit has been merged in the master branch:
commit b950455dba8b43384b73cde41f8f088f38a624b0
Author: Patrick Winnertz <winnie at debian.org>
Date:   Thu Sep 10 13:12:47 2009 +0200

    Including one line fix for data corruption issue on OST
    
    See mail from Johann Lombardi:
        A bug has been identified in the 1.8 releases (1.8.0, 1.8.0.1 & 1.8.1
        are impacted) that can cause data corruption on the OSTs. This problem is
        related to the OSS read cache feature that has been introduced in 1.8.0.
        This can happen when a bulk read or write request is aborted due to the
        client being evicted or because the data transfer over the network has
        timed out. More details are available in bug 20560:
        https://bugzilla.lustre.org/show_bug.cgi?id=20560
    
    Signed-off-by: Patrick Winnertz <winnie at debian.org>

diff --git a/debian/patches/00list b/debian/patches/00list
index ce810b1..701436a 100644
--- a/debian/patches/00list
+++ b/debian/patches/00list
@@ -28,3 +28,5 @@ lnet-missing-prototypes.dpatch
 fix_various_typecasts.dpatch
 build-fixes-for_2.6.18_servers.dpatch
 autogen-run.dpatch
+##obsolete with 1.8.1.1
+OST_read_cache_data_corruption.dpatch
diff --git a/debian/patches/OST_read_cache_data_corruption.dpatch b/debian/patches/OST_read_cache_data_corruption.dpatch
new file mode 100755
index 0000000..9a93276
--- /dev/null
+++ b/debian/patches/OST_read_cache_data_corruption.dpatch
@@ -0,0 +1,20 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## OST_read_cache_data_corruption.dpatch by Patrick Winnertz <winnie at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Fix a possible data corruption on OST when cache on
+## DP: see https://bugzilla.lustre.org/show_bug.cgi?id=20560 for details
+
+ at DPATCH@
+diff --git lustre/ptlrpc/pers.c lustre/ptlrpc/pers.c
+index d53d42c..a2175da 100644
+--- lustre/ptlrpc/pers.c
++++ lustre/ptlrpc/pers.c
+@@ -79,6 +79,7 @@ void ptl_rpc_wipe_bulk_pages(struct ptlrpc_bulk_desc *desc)
+         
+         for (i = 0; i < desc->bd_iov_count ; i++) {
+                 lnet_kiov_t *kiov = &desc->bd_iov[i];
++                ClearPageUptodate(kiov->kiov_page);
+                 memset(cfs_kmap(kiov->kiov_page)+kiov->kiov_offset, 0xab,
+                        kiov->kiov_len);
+                 cfs_kunmap(kiov->kiov_page);

-- 
Lustre Debian Packaging 



More information about the Pkg-lustre-svn-commit mailing list