ovs-rcu: Call ovsrcu_init() in ovsrcu_quiesce().
authorAlex Wang <alexw@nicira.com>
Wed, 19 Mar 2014 17:42:08 +0000 (10:42 -0700)
committerAlex Wang <alexw@nicira.com>
Wed, 19 Mar 2014 17:53:39 +0000 (10:53 -0700)
This commit fixes a bug introduced by 0f2ea848(ovs-rcu: New library.).
It is possible that ovsrcu_quiesce() is called before ovsrcu_init().
So, it is necessary to call ovsrcu_init() in ovsrcu_quiesce().

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/ovs-rcu.c

index ac4513b..1843ef5 100644 (file)
@@ -127,6 +127,7 @@ ovsrcu_quiesce_start(void)
 void
 ovsrcu_quiesce(void)
 {
+    ovsrcu_init();
     ovsrcu_perthread_get()->seqno = seq_read(global_seqno);
     seq_change(global_seqno);