Commit 2434fc38 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Assert we're not in a restart in bch2_trans_put()



This always indicates a transaction restart handling bug

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 69785001
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3261,6 +3261,9 @@ void bch2_trans_put(struct btree_trans *trans)
{
	struct bch_fs *c = trans->c;

	if (trans->restarted)
		bch2_trans_in_restart_error(trans);

	bch2_trans_unlock(trans);

	trans_for_each_update(trans, i)