Skip to content

Commit df92f35

Browse files
author
Kent Overstreet
committed
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 <[email protected]>
1 parent eb34365 commit df92f35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/bcachefs/btree_locking.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -846,9 +846,9 @@ int bch2_trans_relock_notrace(struct btree_trans *trans)
846846

847847
void bch2_trans_unlock(struct btree_trans *trans)
848848
{
849-
__bch2_trans_unlock(trans);
850-
851849
trans_set_unlocked(trans);
850+
851+
__bch2_trans_unlock(trans);
852852
}
853853

854854
void bch2_trans_unlock_long(struct btree_trans *trans)

0 commit comments

Comments
 (0)