diff options
author | Cong Wang <amwang@redhat.com> | 2013-01-22 21:09:51 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-28 00:15:28 -0500 |
commit | 0e36cbb344575e481167e090f0926701f83207d6 (patch) | |
tree | c451ec51b9197d5ad9fe64718e9fb1ae1f12049f /include/net | |
parent | cec771d646d6c9a6f123b50e132ab142342dcb97 (diff) | |
download | linux-stable-0e36cbb344575e481167e090f0926701f83207d6.tar.gz linux-stable-0e36cbb344575e481167e090f0926701f83207d6.tar.bz2 linux-stable-0e36cbb344575e481167e090f0926701f83207d6.zip |
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')
-rw-r--r-- | include/net/sock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index 581dc6bd7dc6..a340ab46b41c 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; |