mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-22 08:44:20 -05:00
bcachefs: Copygc allocations shouldn't be nowait
We don't actually want copygc allocations to be nowait - an allocation for copygc might fail and then later succeed due to a bucket needing to wait on journal commit, or to be discarded. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
committed by
Kent Overstreet
parent
70a9953c42
commit
d905f67ec8
@@ -352,7 +352,6 @@ int bch2_migrate_write_init(struct bch_fs *c, struct migrate_write *m,
|
||||
|
||||
if (m->data_opts.btree_insert_flags & BTREE_INSERT_USE_RESERVE) {
|
||||
m->op.alloc_reserve = RESERVE_movinggc;
|
||||
m->op.flags |= BCH_WRITE_ALLOC_NOWAIT;
|
||||
} else {
|
||||
/* XXX: this should probably be passed in */
|
||||
m->op.flags |= BCH_WRITE_ONLY_SPECIFIED_DEVS;
|
||||
|
||||
Reference in New Issue
Block a user