]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
bcachefs: unlock_long() before resort in journal replay
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 20 Aug 2024 16:10:33 +0000 (12:10 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 Aug 2024 06:07:23 +0000 (02:07 -0400)
Fix another SRCU splat - this one pretty harmless.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/recovery.c

index d89eb43c5ce95138ef527bb61de682d8687e2b14..11368dfa96b28224c3e55e42d39a0ff98426bb4b 100644 (file)
@@ -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: