Lines Matching refs:cycle
182 static noinline int break_cycle(struct lock_graph *g, struct printbuf *cycle) in break_cycle() argument
192 if (cycle) { in break_cycle()
193 print_cycle(cycle, g); in break_cycle()
238 struct printbuf *cycle) in lock_graph_descend() argument
246 return break_cycle(g, cycle); in lock_graph_descend()
258 if (cycle) in lock_graph_descend()
274 int bch2_check_for_deadlock(struct btree_trans *trans, struct printbuf *cycle) in bch2_check_for_deadlock() argument
285 if (cycle) in bch2_check_for_deadlock()
296 if (cycle) in bch2_check_for_deadlock()
297 cycle->atomic++; in bch2_check_for_deadlock()
376 ret = lock_graph_descend(&g, trans, cycle); in bch2_check_for_deadlock()
386 if (g.nr > 1 && cycle) in bch2_check_for_deadlock()
387 print_chain(cycle, &g); in bch2_check_for_deadlock()
391 if (cycle) in bch2_check_for_deadlock()
392 --cycle->atomic; in bch2_check_for_deadlock()