Commit 73dc1656 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Use bch2_wait_on_allocator() in btree node alloc path



If the allocator gets stuck, we need to know why.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent cecf7279
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1264,7 +1264,7 @@ bch2_btree_update_start(struct btree_trans *trans, struct btree_path *path,
			ret = bch2_btree_reserve_get(trans, as, nr_nodes, flags, &cl);

			bch2_trans_unlock(trans);
			closure_sync(&cl);
			bch2_wait_on_allocator(c, &cl);
		} while (bch2_err_matches(ret, BCH_ERR_operation_blocked));
	}