call_rcu: drop mutex
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 9 Jun 2011 13:32:58 +0000 (09:32 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 9 Jun 2011 13:32:58 +0000 (09:32 -0400)
commit2870aa1ec4cc2472ec09f72e2d758bc8d4739181
tree9275061e2d440ab560afd2be7fc06267ea912aad
parentbf33aaea06cbf8257cc49c38abca6d26c0c31c78
call_rcu: drop mutex

The mutex is being used only to protect OR accesses to the flags.
Just use atomic operations for that.

[ Edit: this also fixes busy-looping on flags that were previously read
without volatile access, which could lead to never-ending loop given the
appropriate set of compiler optimisations. ]

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu-call-rcu-impl.h
This page took 0.02544 seconds and 4 git commands to generate.