diff options
author | stephen hemminger <shemminger@vyatta.com> | 2011-02-23 04:06:50 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-23 17:11:32 -0500 |
commit | ada440e3b5c3c155c2a4d73c433b3462086dbb4a (patch) | |
tree | 0a5a6a13f1017be58136771c072b04bc40a5c0dd /net/key/af_key.c | |
parent | 81b504b81437457614ce44ce0dac48038d35f859 (diff) |
afkey: add sparse annotation about rcu
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/key/af_key.c')
-rw-r--r-- | net/key/af_key.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/key/af_key.c b/net/key/af_key.c index d87c22df6f1e..60fd2f13f427 100644 --- a/net/key/af_key.c +++ b/net/key/af_key.c | |||
@@ -3655,6 +3655,7 @@ static int pfkey_seq_show(struct seq_file *f, void *v) | |||
3655 | } | 3655 | } |
3656 | 3656 | ||
3657 | static void *pfkey_seq_start(struct seq_file *f, loff_t *ppos) | 3657 | static void *pfkey_seq_start(struct seq_file *f, loff_t *ppos) |
3658 | __acquires(rcu) | ||
3658 | { | 3659 | { |
3659 | struct net *net = seq_file_net(f); | 3660 | struct net *net = seq_file_net(f); |
3660 | struct netns_pfkey *net_pfkey = net_generic(net, pfkey_net_id); | 3661 | struct netns_pfkey *net_pfkey = net_generic(net, pfkey_net_id); |
@@ -3672,6 +3673,7 @@ static void *pfkey_seq_next(struct seq_file *f, void *v, loff_t *ppos) | |||
3672 | } | 3673 | } |
3673 | 3674 | ||
3674 | static void pfkey_seq_stop(struct seq_file *f, void *v) | 3675 | static void pfkey_seq_stop(struct seq_file *f, void *v) |
3676 | __releases(rcu) | ||
3675 | { | 3677 | { |
3676 | rcu_read_unlock(); | 3678 | rcu_read_unlock(); |
3677 | } | 3679 | } |