bcachefs: Don't start copygc until recovery is finished
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 10 Jul 2023 21:23:59 +0000 (17:23 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:07 +0000 (17:10 -0400)
commitea28c86722954a58e3bab24eec3e7624e8d4956b
treef662b6d2a63333cdf3c8828400b257760522d78d
parentb912913613a1195ba86cbb1bc9b1c12b4c6c4a14
bcachefs: Don't start copygc until recovery is finished

With "bcachefs: Snapshot depth, skiplist fields", we now can't run data
move operations until after bch2_check_snapshots() is complete.

Ideally we'd have the copygc (and rebalance) threads wait until
c->curr_recovery_pass has advanced, but the waitlist handling is tricky
- so for now, move starting copygc back to read_write_late().

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