summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2015-07-09 08:55:38 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2015-07-24 13:57:45 +0200
commitab28bd23125fb4a0411c3a3f01c4edacbc261486 (patch)
tree50cf40b9f83a43d2a7b6dee4a801e6c31fc409ee /util
parentc170aad8b057223b1139d72e5ce7acceafab4fa9 (diff)
downloadhqemu-ab28bd23125fb4a0411c3a3f01c4edacbc261486.zip
hqemu-ab28bd23125fb4a0411c3a3f01c4edacbc261486.tar.gz
rcu: actually register threads that have RCU read-side critical sections
Otherwise, grace periods are detected too early! Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'util')
-rw-r--r--util/rcu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/rcu.c b/util/rcu.c
index 7270151..cdcad67 100644
--- a/util/rcu.c
+++ b/util/rcu.c
@@ -216,6 +216,8 @@ static void *call_rcu_thread(void *opaque)
{
struct rcu_head *node;
+ rcu_register_thread();
+
for (;;) {
int tries = 0;
int n = atomic_read(&rcu_call_count);
OpenPOWER on IntegriCloud