Skip to content

Commit

Permalink
ceph: fix crush recursion
Browse files Browse the repository at this point in the history
There was a longstanding problem with recursion through intervening
bucket types on complex hierarchies.

Signed-off-by: Sage Weil <sage@newdream.net>
  • Loading branch information
liewegas committed Jun 24, 2010
1 parent bfaf148 commit 55bda7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/ceph/crush/mapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 55bda7a

Please sign in to comment.