Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55bda7aa authored by Sage Weil's avatar Sage Weil
Browse files

ceph: fix crush recursion



There was a longstanding problem with recursion through intervening
bucket types on complex hierarchies.

Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent bfaf148e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -366,6 +366,7 @@ static int crush_choose(struct crush_map *map,
					BUG_ON(item >= 0 ||
					       (-1-item) >= map->max_buckets);
					in = map->buckets[-1-item];
					retry_bucket = 1;
					continue;
				}