aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-06-24 15:55:48 -0400
committerSage Weil <sage@newdream.net>2010-06-24 15:55:48 -0400
commit55bda7aacd13f5fdfeaafc16934953171405c692 (patch)
tree0eac30a53266f636589e4b6220409289d068625a /fs/ceph
parentbfaf148eb2e42c00f1c79b2163f0804068ea0c5e (diff)
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>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/crush/mapper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/crush/mapper.c b/fs/ceph/crush/mapper.c
index 9ba54efb6543..804e6d53b77c 100644
--- a/fs/ceph/crush/mapper.c
+++ b/fs/ceph/crush/mapper.c
@@ -366,6 +366,7 @@ static int crush_choose(struct crush_map *map,
366 BUG_ON(item >= 0 || 366 BUG_ON(item >= 0 ||
367 (-1-item) >= map->max_buckets); 367 (-1-item) >= map->max_buckets);
368 in = map->buckets[-1-item]; 368 in = map->buckets[-1-item];
369 retry_bucket = 1;
369 continue; 370 continue;
370 } 371 }
371 372