git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13f5bf1
)
net: relax rtnl_dereference()
author
David S. Miller
<davem@davemloft.net>
Tue, 5 Oct 2010 07:29:48 +0000
(
00:29
-0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 5 Oct 2010 07:29:48 +0000
(
00:29
-0700)
rtnl_dereference() is used in contexts where RTNL is held, to fetch an
RCU protected pointer.
Updates to this pointer are prevented by RTNL, so we dont need
smp_read_barrier_depends() and the ACCESS_ONCE() provided in
rcu_dereference_check().
rtnl_dereference() is mainly a macro to document the locking invariant.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/rtnetlink.h
patch
|
blob
|
history
diff --cc
include/linux/rtnetlink.h
Simple merge