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>
This commit is contained in:
committed by
David S. Miller
parent
7a2b03c517
commit
b914c4ea92
@@ -15,7 +15,7 @@
|
||||
|
||||
struct inet_peer {
|
||||
/* group together avl_left,avl_right,v4daddr to speedup lookups */
|
||||
struct inet_peer *avl_left, *avl_right;
|
||||
struct inet_peer __rcu *avl_left, *avl_right;
|
||||
__be32 v4daddr; /* peer's address */
|
||||
__u32 avl_height;
|
||||
struct list_head unused;
|
||||
|
Reference in New Issue
Block a user