summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-03-15 16:40:55 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2022-05-30 18:17:15 -0400
commit2db023db06b7785d3359db1817f39bacc9bf189d (patch)
tree0dca3fa77b92619ab17ae6ba21bf89aa87d0d021
parent007cd9e8e3929855118e32fde6c7016eb26da13d (diff)
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>
-rw-r--r--fs/bcachefs/move.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/bcachefs/move.c b/fs/bcachefs/move.c
index 09e4f79afdec..38338884884e 100644
--- a/fs/bcachefs/move.c
+++ b/fs/bcachefs/move.c
@@ -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;