bcachefs: Clear trans->locked before unlock

We're adding new should_be_locked assertions: it's going to be illegal
to unlock a should_be_locked path when trans->locked is true.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet
2025-05-22 16:04:15 -04:00
parent eb34365ada
commit df92f3500b

View File

@@ -846,9 +846,9 @@ int bch2_trans_relock_notrace(struct btree_trans *trans)
void bch2_trans_unlock(struct btree_trans *trans)
{
__bch2_trans_unlock(trans);
trans_set_unlocked(trans);
__bch2_trans_unlock(trans);
}
void bch2_trans_unlock_long(struct btree_trans *trans)