diff options
Diffstat (limited to 'tools/testing/radix-tree/iteration_check.c')
-rw-r--r-- | tools/testing/radix-tree/iteration_check.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/testing/radix-tree/iteration_check.c b/tools/testing/radix-tree/iteration_check.c index df71cb841385..f328a66899b4 100644 --- a/tools/testing/radix-tree/iteration_check.c +++ b/tools/testing/radix-tree/iteration_check.c | |||
@@ -48,8 +48,8 @@ static void *add_entries_fn(void *arg) | |||
48 | /* | 48 | /* |
49 | * Iterate over the tagged entries, doing a radix_tree_iter_retry() as we find | 49 | * Iterate over the tagged entries, doing a radix_tree_iter_retry() as we find |
50 | * things that have been removed and randomly resetting our iteration to the | 50 | * things that have been removed and randomly resetting our iteration to the |
51 | * next chunk with radix_tree_iter_next(). Both radix_tree_iter_retry() and | 51 | * next chunk with radix_tree_iter_resume(). Both radix_tree_iter_retry() and |
52 | * radix_tree_iter_next() cause radix_tree_next_slot() to be called with a | 52 | * radix_tree_iter_resume() cause radix_tree_next_slot() to be called with a |
53 | * NULL 'slot' variable. | 53 | * NULL 'slot' variable. |
54 | */ | 54 | */ |
55 | static void *tagged_iteration_fn(void *arg) | 55 | static void *tagged_iteration_fn(void *arg) |
@@ -79,7 +79,7 @@ static void *tagged_iteration_fn(void *arg) | |||
79 | } | 79 | } |
80 | 80 | ||
81 | if (rand_r(&seeds[0]) % 50 == 0) { | 81 | if (rand_r(&seeds[0]) % 50 == 0) { |
82 | slot = radix_tree_iter_next(&iter); | 82 | slot = radix_tree_iter_resume(slot, &iter); |
83 | rcu_read_unlock(); | 83 | rcu_read_unlock(); |
84 | rcu_barrier(); | 84 | rcu_barrier(); |
85 | rcu_read_lock(); | 85 | rcu_read_lock(); |
@@ -96,8 +96,8 @@ static void *tagged_iteration_fn(void *arg) | |||
96 | /* | 96 | /* |
97 | * Iterate over the entries, doing a radix_tree_iter_retry() as we find things | 97 | * Iterate over the entries, doing a radix_tree_iter_retry() as we find things |
98 | * that have been removed and randomly resetting our iteration to the next | 98 | * that have been removed and randomly resetting our iteration to the next |
99 | * chunk with radix_tree_iter_next(). Both radix_tree_iter_retry() and | 99 | * chunk with radix_tree_iter_resume(). Both radix_tree_iter_retry() and |
100 | * radix_tree_iter_next() cause radix_tree_next_slot() to be called with a | 100 | * radix_tree_iter_resume() cause radix_tree_next_slot() to be called with a |
101 | * NULL 'slot' variable. | 101 | * NULL 'slot' variable. |
102 | */ | 102 | */ |
103 | static void *untagged_iteration_fn(void *arg) | 103 | static void *untagged_iteration_fn(void *arg) |
@@ -127,7 +127,7 @@ static void *untagged_iteration_fn(void *arg) | |||
127 | } | 127 | } |
128 | 128 | ||
129 | if (rand_r(&seeds[1]) % 50 == 0) { | 129 | if (rand_r(&seeds[1]) % 50 == 0) { |
130 | slot = radix_tree_iter_next(&iter); | 130 | slot = radix_tree_iter_resume(slot, &iter); |
131 | rcu_read_unlock(); | 131 | rcu_read_unlock(); |
132 | rcu_barrier(); | 132 | rcu_barrier(); |
133 | rcu_read_lock(); | 133 | rcu_read_lock(); |