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
ovs-thread: Quiesce in xpthread_barrier_wait().
[sliver-openvswitch.git]
/
lib
/
ovs-thread.c
diff --git
a/lib/ovs-thread.c
b/lib/ovs-thread.c
index
3ca686f
..
f33f5f1
100644
(file)
--- a/
lib/ovs-thread.c
+++ b/
lib/ovs-thread.c
@@
-240,7
+240,10
@@
xpthread_barrier_wait(pthread_barrier_t *barrier)
{
int error;
+ ovsrcu_quiesce_start();
error = pthread_barrier_wait(barrier);
+ ovsrcu_quiesce_end();
+
if (error && OVS_UNLIKELY(error != PTHREAD_BARRIER_SERIAL_THREAD)) {
ovs_abort(error, "pthread_barrier_wait failed");
}