summaryrefslogtreecommitdiffstats
path: root/include/net/sock.h
diff options
context:
space:
mode:
authorCong Wang <amwang@redhat.com>2013-01-22 21:09:51 +0000
committerDavid S. Miller <davem@davemloft.net>2013-01-28 00:15:28 -0500
commit0e36cbb344575e481167e090f0926701f83207d6 (patch)
treec451ec51b9197d5ad9fe64718e9fb1ae1f12049f /include/net/sock.h
parentcec771d646d6c9a6f123b50e132ab142342dcb97 (diff)
downloadop-kernel-dev-0e36cbb344575e481167e090f0926701f83207d6.zip
op-kernel-dev-0e36cbb344575e481167e090f0926701f83207d6.tar.gz
net: add RCU annotation to sk_dst_cache field
sock->sk_dst_cache is protected by RCU. Reported-by: Fengguang Wu <fengguang.wu@intel.com> Cc: Eric Dumazet <eric.dumazet@gmail.com> Cc: David S. Miller <davem@davemloft.net> Signed-off-by: Cong Wang <amwang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sock.h')
-rw-r--r--include/net/sock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/sock.h b/include/net/sock.h
index 581dc6b..a340ab4 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;
OpenPOWER on IntegriCloud