mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-28 20:37:27 +00:00
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>
This commit is contained in:
parent
cec771d646
commit
0e36cbb344
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user