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)
commita85eff522c253434a9c2b53d6c3a702842fb1d5d
treed857f28cde62ecb23ad79e84ce69d01d30964afc
parent87fbf522618013b675cfd10863630506ad882ef7
rculfhash: replace unneeded rcu_dereference by CMM_LOAD_SHARED

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>
rculfhash.c
This page took 0.024483 seconds and 4 git commands to generate.