From f1946fbe8300e906c30491387e565f3b58d7f049 Mon Sep 17 00:00:00 2001 From: Alex Wang Date: Wed, 19 Mar 2014 10:42:08 -0700 Subject: [PATCH] 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 Acked-by: Ben Pfaff --- lib/ovs-rcu.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.43.0