summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-06-02 01:24:18 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2025-06-02 19:16:36 +0300
commita4907d7f3380f19c11a6191feac85b563439012a (patch)
tree986c66340295fdf39a68a2d6a4c84d7e26a6ed8d
parente49cf9b54bc8b4c41c7aac8f12adb709f2015470 (diff)
downloadlinux-a4907d7f3380f19c11a6191feac85b563439012a.tar.xz
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 <kent.overstreet@linux.dev>
-rw-r--r--fs/bcachefs/snapshot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/snapshot.c b/fs/bcachefs/snapshot.c
index 35dff323bfdb..23a332d76b32 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);
}