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:
committed by
Kent Overstreet
parent
b169138d48
commit
5dd21b2712
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user