diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2017-02-28 18:53:53 +0100 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2017-03-07 14:30:37 +0100 |
commit | 9afd30dbc82a9dbea4101aba57beb2a2a7e1b8d5 (patch) | |
tree | 41513ac5ab92f482a9a965d5932d58ecf2f92cb0 /net/ceph/osdmap.c | |
parent | Linux 4.11-rc1 (diff) | |
download | linux-9afd30dbc82a9dbea4101aba57beb2a2a7e1b8d5.tar.xz linux-9afd30dbc82a9dbea4101aba57beb2a2a7e1b8d5.zip |
libceph: fix crush_decode() for older maps
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>
Diffstat (limited to 'net/ceph/osdmap.c')
-rw-r--r-- | net/ceph/osdmap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ceph/osdmap.c b/net/ceph/osdmap.c index 6824c0ec8373..cc22dd282a3e 100644 --- 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; |