mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 06:31:58 +02:00
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:
parent
eb34365ada
commit
df92f3500b
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user