From: Kent Overstreet Date: Wed, 7 Aug 2024 20:40:14 +0000 (-0400) Subject: bcachefs: Use bch2_wait_on_allocator() in btree node alloc path X-Git-Tag: microblaze-v6.13~9^2~197 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=73dc1656f41a42849e43b945fe44d4e3d55eb6c3;p=linux-2.6-microblaze.git 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 --- diff --git a/fs/bcachefs/btree_update_interior.c b/fs/bcachefs/btree_update_interior.c index 31ee50184be2..e61f9695771e 100644 --- a/fs/bcachefs/btree_update_interior.c +++ b/fs/bcachefs/btree_update_interior.c @@ -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)); }