summaryrefslogtreecommitdiff
path: root/lib/ovs-rcu.c
diff options
context:
space:
mode:
authorAlex Wang <alexw@nicira.com>2014-03-19 10:42:08 -0700
committerAlex Wang <alexw@nicira.com>2014-03-19 10:53:39 -0700
commitf1946fbe8300e906c30491387e565f3b58d7f049 (patch)
tree518576d06c849693516ead06b1f9d44c1513908b /lib/ovs-rcu.c
parent543ede7e3eaac62c14a061296722839829b0cef8 (diff)
downloadopenvswitch-f1946fbe8300e906c30491387e565f3b58d7f049.tar.gz
ovs-rcu: Call ovsrcu_init() in ovsrcu_quiesce().
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>
Diffstat (limited to 'lib/ovs-rcu.c')
-rw-r--r--lib/ovs-rcu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ovs-rcu.c b/lib/ovs-rcu.c
index ac4513b33..1843ef598 100644
--- a/lib/ovs-rcu.c
+++ b/lib/ovs-rcu.c
@@ -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);