The transaction is going to abort, so there will be no cycle involving this transaction anymore.
Signed-off-by: Alan Huang <mmpgour...@gmail.com> --- fs/bcachefs/btree_locking.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/bcachefs/btree_locking.c b/fs/bcachefs/btree_locking.c index 70f13ab5ba7b..bf25fd0a1cca 100644 --- a/fs/bcachefs/btree_locking.c +++ b/fs/bcachefs/btree_locking.c @@ -242,6 +242,8 @@ static noinline int break_cycle(struct lock_graph *g, struct printbuf *cycle, out: if (ret) lock_graph_pop_all(g); + else + lock_graph_pop_from(g, abort); return ret; } -- 2.45.2