bcachefs: make sure to release last journal pin in replay
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 16 Apr 2024 03:53:12 +0000 (23:53 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Tue, 16 Apr 2024 23:14:01 +0000 (19:14 -0400)
commit79055f50a65fe5eb58e9da1f79fb0a4f4bc82fff
tree33f6f46429d149d22a31aae4c33b9f5c64d92f70
parentfabb4d49854281027454b0fa305d33f6c9ec4b47
bcachefs: make sure to release last journal pin in replay

This fixes a deadlock when journal replay has many keys to insert that
were from fsck, not the journal.

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