Skip to content

Commit 5dd21b2

Browse files
alanskindKent Overstreet
authored andcommitted
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>
1 parent b169138 commit 5dd21b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/bcachefs/btree_locking.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ static noinline int break_cycle(struct lock_graph *g, struct printbuf *cycle,
242242
out:
243243
if (ret)
244244
lock_graph_pop_all(g);
245+
else
246+
lock_graph_pop_from(g, abort);
245247
return ret;
246248
}
247249

0 commit comments

Comments
 (0)