projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1ae3cf
)
libceph: fix crush_decode() for older maps
author
Ilya Dryomov
<idryomov@gmail.com>
Tue, 28 Feb 2017 17:53:53 +0000
(18:53 +0100)
committer
Ilya Dryomov
<idryomov@gmail.com>
Tue, 7 Mar 2017 13:30:37 +0000
(14:30 +0100)
Older (shorter) CRUSH maps too need to be finalized.
Fixes:
66a0e2d579db
("crush: remove mutable part of CRUSH map")
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
net/ceph/osdmap.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ceph/osdmap.c
b/net/ceph/osdmap.c
index 6824c0ec8373e721ac9ca2d837f488ff22233e1f..cc22dd282a3e0b90b21056a527dd67b5849c6125 100644
(file)
--- a/
net/ceph/osdmap.c
+++ b/
net/ceph/osdmap.c
@@
-390,9
+390,8
@@
static struct crush_map *crush_decode(void *pbyval, void *end)
dout("crush decode tunable chooseleaf_stable = %d\n",
c->chooseleaf_stable);
- crush_finalize(c);
-
done:
+ crush_finalize(c);
dout("crush_decode success\n");
return c;