projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rcuja tests: free node cb does not need to wait for Q.S. in destroy
[urcu.git]
/
tests
/
test_urcu_ja.c
diff --git
a/tests/test_urcu_ja.c
b/tests/test_urcu_ja.c
index c25229094a846db81d39a7e11ad4e2419cdde3ad..c85d20610c566aacd596aa0157528e4e169fb474 100644
(file)
--- a/
tests/test_urcu_ja.c
+++ b/
tests/test_urcu_ja.c
@@
-145,7
+145,7
@@
struct ja_test_node *node_alloc(void)
}
static
}
static
-void free_node(struct ja_test_node *node)
+void free_
test_
node(struct ja_test_node *node)
{
poison_free(node);
if (leak_detection)
{
poison_free(node);
if (leak_detection)
@@
-153,25
+153,25
@@
void free_node(struct ja_test_node *node)
}
static
}
static
-void free_node_cb(struct rcu_head *head)
+void free_
test_
node_cb(struct rcu_head *head)
{
struct ja_test_node *node =
caa_container_of(head, struct ja_test_node, head);
{
struct ja_test_node *node =
caa_container_of(head, struct ja_test_node, head);
- free_node(node);
+ free_
test_
node(node);
}
static
void rcu_free_test_node(struct ja_test_node *test_node)
{
}
static
void rcu_free_test_node(struct ja_test_node *test_node)
{
- call_rcu(&test_node->head, free_node_cb);
+ call_rcu(&test_node->head, free_
test_
node_cb);
}
static
}
static
-void
rcu_
free_node(struct cds_ja_node *node)
+void free_node(struct cds_ja_node *node)
{
struct ja_test_node *test_node = to_test_node(node);
{
struct ja_test_node *test_node = to_test_node(node);
-
rcu_
free_test_node(test_node);
+ free_test_node(test_node);
}
#if 0
}
#if 0
@@
-371,7
+371,7
@@
int test_8bit_key(void)
printf("OK\n");
printf("OK\n");
- ret = cds_ja_destroy(test_ja,
rcu_
free_node);
+ ret = cds_ja_destroy(test_ja, free_node);
if (ret) {
fprintf(stderr, "Error destroying judy array\n");
return -1;
if (ret) {
fprintf(stderr, "Error destroying judy array\n");
return -1;
@@
-530,7
+530,7
@@
int test_16bit_key(void)
printf("OK\n");
printf("OK\n");
- ret = cds_ja_destroy(test_ja,
rcu_
free_node);
+ ret = cds_ja_destroy(test_ja, free_node);
if (ret) {
fprintf(stderr, "Error destroying judy array\n");
return -1;
if (ret) {
fprintf(stderr, "Error destroying judy array\n");
return -1;
@@
-665,7
+665,7
@@
int test_sparse_key(unsigned int bits, int nr_dup)
}
printf("OK\n");
}
printf("OK\n");
- ret = cds_ja_destroy(test_ja,
rcu_
free_node);
+ ret = cds_ja_destroy(test_ja, free_node);
if (ret) {
fprintf(stderr, "Error destroying judy array\n");
return -1;
if (ret) {
fprintf(stderr, "Error destroying judy array\n");
return -1;
@@
-834,7
+834,7
@@
void *test_ja_rw_thr_writer(void *_count)
if (add_unique) {
ret_node = cds_ja_add_unique(test_ja, key, &node->node);
if (ret_node != &node->node) {
if (add_unique) {
ret_node = cds_ja_add_unique(test_ja, key, &node->node);
if (ret_node != &node->node) {
- free_node(node);
+ free_
test_
node(node);
URCU_TLS(nr_addexist)++;
} else {
URCU_TLS(nr_add)++;
URCU_TLS(nr_addexist)++;
} else {
URCU_TLS(nr_add)++;
@@
-845,7
+845,7
@@
void *test_ja_rw_thr_writer(void *_count)
ret = cds_ja_add(test_ja, key, &node->node);
if (ret) {
fprintf(stderr, "Error in cds_ja_add: %d\n", ret);
ret = cds_ja_add(test_ja, key, &node->node);
if (ret) {
fprintf(stderr, "Error in cds_ja_add: %d\n", ret);
- free_node(node);
+ free_
test_
node(node);
} else {
URCU_TLS(nr_add)++;
}
} else {
URCU_TLS(nr_add)++;
}
@@
-1011,7
+1011,7
@@
int do_mt_test(void)
}
rcu_thread_online_qsbr();
}
rcu_thread_online_qsbr();
- ret = cds_ja_destroy(test_ja,
rcu_
free_node);
+ ret = cds_ja_destroy(test_ja, free_node);
if (ret) {
fprintf(stderr, "Error destroying judy array\n");
goto end;
if (ret) {
fprintf(stderr, "Error destroying judy array\n");
goto end;
This page took
0.02471 seconds
and
4
git commands to generate.