From: Cong Wang Date: Tue, 22 Jan 2013 21:09:51 +0000 (+0000) Subject: net: add RCU annotation to sk_dst_cache field X-Git-Tag: v3.9-rc1~139^2~247 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=0e36cbb344575e481167e090f0926701f83207d6;p=~emulex%2Finfiniband.git net: add RCU annotation to sk_dst_cache field sock->sk_dst_cache is protected by RCU. Reported-by: Fengguang Wu Cc: Eric Dumazet Cc: David S. Miller Signed-off-by: Cong Wang Signed-off-by: David S. Miller --- diff --git a/include/net/sock.h b/include/net/sock.h index 581dc6bd7dc..a340ab46b41 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -340,7 +340,7 @@ struct sock { #endif unsigned long sk_flags; struct dst_entry *sk_rx_dst; - struct dst_entry *sk_dst_cache; + struct dst_entry __rcu *sk_dst_cache; spinlock_t sk_dst_lock; atomic_t sk_wmem_alloc; atomic_t sk_omem_alloc;