Skip to content

Commit a4907d7

Browse files
author
Kent Overstreet
committed
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 <[email protected]>
1 parent e49cf9b commit a4907d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/bcachefs/snapshot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1935,7 +1935,7 @@ void bch2_delete_dead_snapshots_async(struct bch_fs *c)
19351935

19361936
BUG_ON(!test_bit(BCH_FS_may_go_rw, &c->flags));
19371937

1938-
if (!queue_work(c->write_ref_wq, &c->snapshot_delete.work))
1938+
if (!queue_work(system_long_wq, &c->snapshot_delete.work))
19391939
enumerated_ref_put(&c->writes, BCH_WRITE_REF_delete_dead_snapshots);
19401940
}
19411941

0 commit comments

Comments
 (0)