mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 23:52:08 +02:00
ceph: fix crush recursion
There was a longstanding problem with recursion through intervening bucket types on complex hierarchies. Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
bfaf148eb2
commit
55bda7aacd
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user