bcachefs: Pop all the transactions from the abort one

The transaction is going to abort, so there will be no cycle involving
this transaction anymore.

Signed-off-by: Alan Huang <mmpgouride@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Alan Huang
2024-10-03 03:06:33 +08:00
committed by Kent Overstreet
parent b169138d48
commit 5dd21b2712
+2
View File
@@ -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;
}