]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
afkey: add sparse annotation about rcu
authorstephen hemminger <shemminger@vyatta.com>
Wed, 23 Feb 2011 09:06:50 +0000 (09:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Feb 2011 22:11:32 +0000 (14:11 -0800)
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/key/af_key.c

index d87c22df6f1eb3e7f7d8daa3704a612f9e032179..60fd2f13f427d3422b12e9e5698c52372759abb4 100644 (file)
@@ -3655,6 +3655,7 @@ static int pfkey_seq_show(struct seq_file *f, void *v)
 }
 
 static void *pfkey_seq_start(struct seq_file *f, loff_t *ppos)
+       __acquires(rcu)
 {
        struct net *net = seq_file_net(f);
        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)
 }
 
 static void pfkey_seq_stop(struct seq_file *f, void *v)
+       __releases(rcu)
 {
        rcu_read_unlock();
 }