urcu-bp: reset ctr to 0 upon garbage collection
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Wed, 3 Mar 2010 14:08:30 +0000 (09:08 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Wed, 3 Mar 2010 14:08:30 +0000 (09:08 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu-bp.c

index 1b0bd6950da04533c35bf00a5c131ac4da3e470b..3af7c3b9712879b3b74481900b5ee615cae7f8e0 100644 (file)
--- a/urcu-bp.c
+++ b/urcu-bp.c
@@ -300,6 +300,7 @@ static void rcu_gc_registry(void)
                assert(ret != EINVAL);
                if (ret == ESRCH) {
                        list_del(&rcu_reader_reg->head);
+                       rcu_reader_reg->ctr = 0;
                        rcu_reader_reg->alloc = 0;
                        registry_arena.used -= sizeof(struct rcu_reader);
                }
This page took 0.037144 seconds and 4 git commands to generate.