]> git.proxmox.com Git - ceph.git/commitdiff
backport fix for possible rocksdb corruption
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 15 Nov 2019 07:45:19 +0000 (08:45 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 15 Nov 2019 07:45:19 +0000 (08:45 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
patches/0012-os-bluestore-consolidate-extents-from-the-same-devic.patch [new file with mode: 0644]
patches/series

diff --git a/patches/0012-os-bluestore-consolidate-extents-from-the-same-devic.patch b/patches/0012-os-bluestore-consolidate-extents-from-the-same-devic.patch
new file mode 100644 (file)
index 0000000..b3bd53f
--- /dev/null
@@ -0,0 +1,27 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Igor Fedotov <ifedotov@suse.com>
+Date: Wed, 13 Nov 2019 22:09:53 +0300
+Subject: [PATCH] os/bluestore: consolidate extents from the same device only
+
+Presumably Fixes: https://tracker.ceph.com/issues/42223
+
+Signed-off-by: Igor Fedotov <ifedotov@suse.com>
+(cherry picked from commit 20a90698a262905e97bae771b5950af04c00c67a)
+[ https://github.com/ceph/ceph/pull/31621 ]
+Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
+---
+ src/os/bluestore/bluefs_types.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/os/bluestore/bluefs_types.h b/src/os/bluestore/bluefs_types.h
+index fde0384..d841264 100644
+--- a/src/os/bluestore/bluefs_types.h
++++ b/src/os/bluestore/bluefs_types.h
+@@ -91,6 +91,7 @@ struct bluefs_fnode_t {
+   void append_extent(const bluefs_extent_t& ext) {
+     if (!extents.empty() &&
+       extents.back().end() == ext.offset &&
++      extents.back().bdev == ext.bdev &&
+       (uint64_t)extents.back().length + (uint64_t)ext.length < 0xffffffff) {
+       extents.back().length += ext.length;
+     } else {
index 1701a0e549bf59f2c3959498b06f196c41c77af5..ce50bcacef15685e7b8e80cdc1b2ed6f14b67bfd 100644 (file)
@@ -6,3 +6,4 @@
 0009-remove-legacy-pve-ceph-osd-activation-script-in-post.patch
 0010-remove-legacy-init.d-ceph-script.patch
 0011-only-suggest-mgr-plugins.patch
+0012-os-bluestore-consolidate-extents-from-the-same-devic.patch