diff options
author | Cong Wang <amwang@redhat.com> | 2013-01-22 16:09:51 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-28 00:15:28 -0500 |
commit | 0e36cbb344575e481167e090f0926701f83207d6 (patch) | |
tree | c451ec51b9197d5ad9fe64718e9fb1ae1f12049f /include/net/sock.h | |
parent | cec771d646d6c9a6f123b50e132ab142342dcb97 (diff) |
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.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 { | |||
340 | #endif | 340 | #endif |
341 | unsigned long sk_flags; | 341 | unsigned long sk_flags; |
342 | struct dst_entry *sk_rx_dst; | 342 | struct dst_entry *sk_rx_dst; |
343 | struct dst_entry *sk_dst_cache; | 343 | struct dst_entry __rcu *sk_dst_cache; |
344 | spinlock_t sk_dst_lock; | 344 | spinlock_t sk_dst_lock; |
345 | atomic_t sk_wmem_alloc; | 345 | atomic_t sk_wmem_alloc; |
346 | atomic_t sk_omem_alloc; | 346 | atomic_t sk_omem_alloc; |