mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 00:22:00 +02:00
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>
This commit is contained in:
parent
e49cf9b54b
commit
a4907d7f33
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user