Fix: urcu-signal: smp_mb_master() needs registry lock
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 30 Oct 2015 21:11:55 +0000 (17:11 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 30 Oct 2015 21:22:58 +0000 (17:22 -0400)
commit4fce3d9a4ddc33f5157c8293fdbf7253c134167f
treecc3ae027e896ae08ac217aff349c6a96f9c7620c
parente648909d4021d6d5a011e69a373fa22be877bfbf
Fix: urcu-signal: smp_mb_master() needs registry lock

The signal-based urcu flavor calls smp_mb_master() within the wait_gp()
function. Since commit "Fix: deadlock when thread join is issued in
read-side C.S.", wait_gp() is called without the registry lock held.

Ensure that the registry lock is only released around the wait per se,
not around the call to smp_mb_master(), otherwise we end up iterating on
a non-consistent thread registry in smp_mb_master().

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu.c
This page took 0.02414 seconds and 4 git commands to generate.