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)
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>

No differences found
This page took 0.025424 seconds and 4 git commands to generate.