diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-10-25 03:47:05 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-25 14:18:28 -0700 |
commit | 0d7da9ddd9a4eb7808698d04b98bf9d62d02649b (patch) | |
tree | b170122c08d47be35a056782be54573ba19fe0b0 /include/net/sock.h | |
parent | 1c87733d0682547050ccccb400cdac425fa43b39 (diff) | |
download | linux-0d7da9ddd9a4eb7808698d04b98bf9d62d02649b.tar.gz linux-0d7da9ddd9a4eb7808698d04b98bf9d62d02649b.tar.bz2 linux-0d7da9ddd9a4eb7808698d04b98bf9d62d02649b.zip |
net: add __rcu annotation to sk_filter
Add __rcu annotation to :
(struct sock)->sk_filter
And use appropriate rcu primitives to reduce sparse warnings if
CONFIG_SPARSE_RCU_POINTER=y
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.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 73a4f9702a65..c7a736228ca2 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -301,7 +301,7 @@ struct sock { const struct cred *sk_peer_cred; long sk_rcvtimeo; long sk_sndtimeo; - struct sk_filter *sk_filter; + struct sk_filter __rcu *sk_filter; void *sk_protinfo; struct timer_list sk_timer; ktime_t sk_stamp; |