]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Call bch2_fs_init_rw() early if we'll be going rw
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 15 Jun 2025 20:43:34 +0000 (16:43 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 16 Jun 2025 23:04:48 +0000 (19:04 -0400)
commit1cddad0fcbccc7056036f2a83184a3ca5c62f7d3
tree4b734b80a686ba9dcee68837e91fc01bc1ae9018
parentf2a701fd94f161bdca7537284ba218c20181451e
bcachefs: Call bch2_fs_init_rw() early if we'll be going rw

kthread creation checks for pending signals, which is _very_ annoying if
we have to do a long recovery and don't go rw until we've done
significant work.

Check if we'll be going rw and pre-allocate kthreads/workqueues.

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