Przeglądaj źródła

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>
Sage Weil 15 lat temu
rodzic
commit
55bda7aacd
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      fs/ceph/crush/mapper.c

+ 1 - 0
fs/ceph/crush/mapper.c

@@ -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;
 				}