diff --git a/pkg/sync/locking/lockdep.go b/pkg/sync/locking/lockdep.go index d58c2c825..b38d2fd0b 100644 --- a/pkg/sync/locking/lockdep.go +++ b/pkg/sync/locking/lockdep.go @@ -70,7 +70,7 @@ func checkLock(class *MutexClass, prevClass *MutexClass, chain []*MutexClass) { } panic(b.String()) } - prevClass.ancestors.Range(func(parentClass *MutexClass, stacks *string) bool { + prevClass.ancestors.RangeRepeatable(func(parentClass *MutexClass, stacks *string) bool { // The recursion is fine here. If it fails, you need to reduce // a number of nested locks. checkLock(class, parentClass, chain)