bcachefs: Don't start allocator threads too early
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 31 Dec 2021 00:30:42 +0000 (19:30 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:19 +0000 (17:09 -0400)
commitc64740ef27cfe2092e3a56509b3bf44e9b10ae49
tree813348a007f94ed35d9dd1161b76c3452bc7ede9
parent77170d0dd7020ed72cd748a0c354bf0c0345b6b3
bcachefs: Don't start allocator threads too early

If the allocator threads start before journal replay has finished
replaying alloc keys, journal replay might overwrite the allocator's
btree updates.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/alloc_background.c
fs/bcachefs/bcachefs.h
fs/bcachefs/recovery.c