rculfhash: replace unneeded rcu_dereference by CMM_LOAD_SHARED
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 7 May 2012 15:18:14 +0000 (11:18 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 7 May 2012 15:18:14 +0000 (11:18 -0400)
The difference between the two is that CMM_LOAD_SHARED() does not imply
a read barrier between the read and following uses of the data pointed
to by the pointer read.

All sites that only use the pointer load for its bits (never
dereference) don't need the read barrier implied by rcu_dereference.

Reviewed-by: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>

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