[ltt-dev] [PATCH RFC] call_rcu() interface for userspace-rcu
Paolo Bonzini
pbonzini at redhat.com
Sat Oct 30 05:35:24 EDT 2010
On 10/30/2010 10:57 AM, Paolo Bonzini wrote:
>
> retry:
> flags = crdp->flags;
> if ((flags & URCU_CALL_RCU_REQUESTED))
> continue;
> if (cmpxchg (&crdp->flags, flags,
> flags & ~URCU_CALL_RCU_RUNNING) != flags)
> goto retry;
>
> futex_wait (&crdp->flags,
> flags & ~URCU_CALL_RCU_RUNNING);
(The above is missing setting URCU_CALL_RCU_RUNNING after the
futex_wait; resetting URCU_CALL_RCU_REQUESTED can be done more or less
anywhere, e.g. after synchronize_rcu).
Paolo
More information about the lttng-dev
mailing list