From: Kent Overstreet Date: Fri, 24 Nov 2023 05:54:43 +0000 (-0500) Subject: bcachefs: Don't stop copygc thread on device resize X-Git-Tag: v6.7-rc4~18^2~18 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=202a7c292ec65d5a602aa356f4fa4f50ff84cdee;p=users%2Fdwmw2%2Flinux.git bcachefs: Don't stop copygc thread on device resize copygc no longer has to scan the buckets, so it's no longer a problem if the number of buckets is changing while it's running. This also fixes a bug where we forgot to restart copygc. Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/buckets.c b/fs/bcachefs/buckets.c index 58d8c6ffd9554..61e4cc09ad831 100644 --- a/fs/bcachefs/buckets.c +++ b/fs/bcachefs/buckets.c @@ -2091,8 +2091,6 @@ int bch2_dev_buckets_resize(struct bch_fs *c, struct bch_dev *ca, u64 nbuckets) bucket_gens->first_bucket = ca->mi.first_bucket; bucket_gens->nbuckets = nbuckets; - bch2_copygc_stop(c); - if (resize) { down_write(&c->gc_lock); down_write(&ca->bucket_lock);