]> git.baikalelectronics.ru Git - kernel.git/commit
inetpeer: __rcu annotations
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 25 Oct 2010 23:55:38 +0000 (23:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Oct 2010 18:37:33 +0000 (11:37 -0700)
commita089dd87e6765e332ebe12ba3718f0a218da4473
tree630f7c81d82e580e5aa5164c0e4cf1d0dadca3ba
parente3d4bd77a22d9f1d31d97cef779584d7b734d16a
inetpeer: __rcu annotations

Adds __rcu annotations to inetpeer
(struct inet_peer)->avl_left
(struct inet_peer)->avl_right

This is a tedious cleanup, but removes one smp_wmb() from link_to_pool()
since we now use more self documenting rcu_assign_pointer().

Note the use of RCU_INIT_POINTER() instead of rcu_assign_pointer() in
all cases we dont need a memory barrier.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inetpeer.h
net/ipv4/inetpeer.c