From: Liam R. Howlett Date: Thu, 28 Aug 2025 14:53:45 +0000 (-0400) Subject: maple_tree: Fix check_bulk_rebalance() test locks X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d7f373b5fbb015aaddc9f93034b394b777efde65;p=users%2Fjedix%2Flinux-maple.git maple_tree: Fix check_bulk_rebalance() test locks The check_bulk_rebalance() test was not correctly locking the tree which caused issues with the sheaves testing in later patches. Adding the missing locks fixed the issue. Signed-off-by: Liam R. Howlett --- diff --git a/tools/testing/radix-tree/maple.c b/tools/testing/radix-tree/maple.c index 172700fb7784..159d5307b30a 100644 --- a/tools/testing/radix-tree/maple.c +++ b/tools/testing/radix-tree/maple.c @@ -36465,6 +36465,7 @@ static inline void check_bulk_rebalance(struct maple_tree *mt) build_full_tree(mt, 0, 2); + mas_lock(&mas); /* erase every entry in the tree */ do { /* set up bulk store mode */ @@ -36474,6 +36475,7 @@ static inline void check_bulk_rebalance(struct maple_tree *mt) } while (mas_prev(&mas, 0) != NULL); mas_destroy(&mas); + mas_unlock(&mas); } void farmer_tests(void)