summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-08-20 12:10:33 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2024-08-22 02:07:23 -0400
commit1dceae4cc12aa6389d9a8706f0d2a94d1679e79d (patch)
tree53410235756e085ebb69d55e9e7fc509fc7fca78 /fs
parentcecc328240609df17395dfd0ea03cc813d8be36d (diff)
bcachefs: unlock_long() before resort in journal replay
Fix another SRCU splat - this one pretty harmless. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs')
-rw-r--r--fs/bcachefs/recovery.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c
index d89eb43c5ce9..11368dfa96b2 100644
--- a/fs/bcachefs/recovery.c
+++ b/fs/bcachefs/recovery.c
@@ -322,6 +322,7 @@ int bch2_journal_replay(struct bch_fs *c)
}
}
+ bch2_trans_unlock_long(trans);
/*
* Now, replay any remaining keys in the order in which they appear in
* the journal, unpinning those journal entries as we go: