diff options
author | 2025-05-22 16:04:15 -0400 | |
---|---|---|
committer | 2025-05-23 07:59:43 -0400 | |
commit | df92f3500b3f78b8e0ed3faa95c15a834ea9a821 (patch) | |
tree | 6d5490f38b140a94b647a71a402c184748a9c775 | |
parent | bcachefs: Clear should_be_locked before unlock in key_cache_drop() (diff) | |
download | wireguard-linux-df92f3500b3f78b8e0ed3faa95c15a834ea9a821.tar.xz wireguard-linux-df92f3500b3f78b8e0ed3faa95c15a834ea9a821.zip |
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>
-rw-r--r-- | fs/bcachefs/btree_locking.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/btree_locking.c b/fs/bcachefs/btree_locking.c index 78f485ed1746..826930b4b164 100644 --- a/fs/bcachefs/btree_locking.c +++ b/fs/bcachefs/btree_locking.c @@ -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) |