]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Add locking for bch_fs.curr_recovery_pass
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Sep 2024 03:27:59 +0000 (23:27 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:14 +0000 (01:36 -0500)
commitd65d126c0256cf2349e118a3e8627d8281295eee
treef9817989a6c6d8ffb1f6c1d4503206207daa9fe5
parent26c79fdc580d27c08c050789c523ce89e9a0da44
bcachefs: Add locking for bch_fs.curr_recovery_pass

Recovery can rewind in certain situations - when we discover we need to
run a pass that doesn't normally run.

This can happen from another thread for btree node read errors, so we
need a bit of locking.

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