It's mostly a "max retry" thing so we don't get stuck in this infinite loop (e.g. if it's not possible to move MAX_SEGMENTS_TO_MOVE).