projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: rcutorture should register thread using call_rcu
[urcu.git]
/
tests
/
regression
/
rcutorture.h
diff --git
a/tests/regression/rcutorture.h
b/tests/regression/rcutorture.h
index bf20e56c8c0763541b1a95a169e68ca046db2493..053653faca37a0b3be9f649c3cf7728da4c61400 100644
(file)
--- a/
tests/regression/rcutorture.h
+++ b/
tests/regression/rcutorture.h
@@
-368,6
+368,9
@@
void *rcu_update_stress_test(void *arg)
struct rcu_stress *p;
struct rcu_head rh;
struct rcu_stress *p;
struct rcu_head rh;
+ rcu_register_thread();
+ rcu_thread_offline();
+
while (goflag == GOFLAG_INIT)
(void) poll(NULL, 0, 1);
while (goflag == GOFLAG_RUN) {
while (goflag == GOFLAG_INIT)
(void) poll(NULL, 0, 1);
while (goflag == GOFLAG_RUN) {
@@
-415,6
+418,9
@@
void *rcu_update_stress_test(void *arg)
}
n_updates++;
}
}
n_updates++;
}
+
+ rcu_thread_online();
+ rcu_unregister_thread();
return NULL;
}
return NULL;
}
This page took
0.02336 seconds
and
4
git commands to generate.