From: Kent Overstreet Date: Sun, 1 Jun 2025 22:24:18 +0000 (-0400) Subject: bcachefs: Run snapshot deletion out of system_long_wq X-Git-Tag: v6.16-rc1~48^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a4907d7f3380f19c11a6191feac85b563439012a;p=thirdparty%2Flinux.git bcachefs: Run snapshot deletion out of system_long_wq We don't want this running out of the same workqueue, and blocking, writes. Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/snapshot.c b/fs/bcachefs/snapshot.c index 35dff323bfdb4..23a332d76b327 100644 --- a/fs/bcachefs/snapshot.c +++ b/fs/bcachefs/snapshot.c @@ -1935,7 +1935,7 @@ void bch2_delete_dead_snapshots_async(struct bch_fs *c) BUG_ON(!test_bit(BCH_FS_may_go_rw, &c->flags)); - if (!queue_work(c->write_ref_wq, &c->snapshot_delete.work)) + if (!queue_work(system_long_wq, &c->snapshot_delete.work)) enumerated_ref_put(&c->writes, BCH_WRITE_REF_delete_dead_snapshots); }