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 7de182f5db4025ad87effd3184c8b0d10bfdce55..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;
}
@@
-531,7
+537,7
@@
int main(int argc, char *argv[])
goto end;
}
}
goto end;
}
}
-
+
switch (callrcu_type) {
case CALLRCU_GLOBAL:
diag("Using global per-process call_rcu thread.");
switch (callrcu_type) {
case CALLRCU_GLOBAL:
diag("Using global per-process call_rcu thread.");
This page took
0.023192 seconds
and
4
git commands to generate.