git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ofproto-dpif: Use sequence number to wake up main thread for
[sliver-openvswitch.git]
/
lib
/
ovs-rcu.c
diff --git
a/lib/ovs-rcu.c
b/lib/ovs-rcu.c
index
ac4513b
..
269f51b
100644
(file)
--- a/
lib/ovs-rcu.c
+++ b/
lib/ovs-rcu.c
@@
-127,6
+127,7
@@
ovsrcu_quiesce_start(void)
void
ovsrcu_quiesce(void)
{
void
ovsrcu_quiesce(void)
{
+ ovsrcu_init();
ovsrcu_perthread_get()->seqno = seq_read(global_seqno);
seq_change(global_seqno);
ovsrcu_perthread_get()->seqno = seq_read(global_seqno);
seq_change(global_seqno);
@@
-226,6
+227,7
@@
ovsrcu_call_postponed(void)
static void *
ovsrcu_postpone_thread(void *arg OVS_UNUSED)
{
static void *
ovsrcu_postpone_thread(void *arg OVS_UNUSED)
{
+ set_subprogram_name("urcu");
pthread_detach(pthread_self());
for (;;) {
pthread_detach(pthread_self());
for (;;) {