urcu-qsbr: use rcu_thread_offline/rcu_thread_online instead of inlining them
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 13 Sep 2011 17:49:28 +0000 (13:49 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 13 Sep 2011 17:49:28 +0000 (13:49 -0400)
commit27b940e7a3f4ebd44ac60636905374e59751e835
tree62fa345b856dff8fc2f34eb0fa12699654baf544
parent0938c5415e2a0bf18afc9a225466ddf01e7cbb3d
urcu-qsbr: use rcu_thread_offline/rcu_thread_online instead of inlining them

* Mathieu Desnoyers wrote:

> Just to let you know that I pushed two updates into urcu: one fixes a
> grace period hang caused by a missing wakeup in the synchronize_rcu
> QSBR code. This appears to hit us due to the more fine-grained wakeup
> code brought by Paolo. The wakeup was really missing from the
> synchronize_rcu code (so Paolo's code just triggered an existing
> problem). I thought it would be good to let you know the effect: grace
> periods are delayed forever. This problem never appeared in a release
> (I caught it before).

Good catch.  Why not use rcu_thread_offline/online in synchronize_rcu,
instead of touching rcu_reader.ctr directly?  I had this in my QEMU
branch but hadn't posted yet because it was meant as a cleanup only.

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