Skip to content

Commit 73dc165

Browse files
author
Kent Overstreet
committed
bcachefs: Use bch2_wait_on_allocator() in btree node alloc path
If the allocator gets stuck, we need to know why. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
1 parent cecf727 commit 73dc165

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/bcachefs/btree_update_interior.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1264,7 +1264,7 @@ bch2_btree_update_start(struct btree_trans *trans, struct btree_path *path,
12641264
ret = bch2_btree_reserve_get(trans, as, nr_nodes, flags, &cl);
12651265

12661266
bch2_trans_unlock(trans);
1267-
closure_sync(&cl);
1267+
bch2_wait_on_allocator(c, &cl);
12681268
} while (bch2_err_matches(ret, BCH_ERR_operation_blocked));
12691269
}
12701270

0 commit comments

Comments
 (0)