am 08dd6d1f: am 56754193: Merge "Fix cycle detection for SGs." into jb-mr1-dev

* commit '08dd6d1f0e92a93b499dd4d63ef0f23c728adc97':
  Fix cycle detection for SGs.