From: stephen hemminger Date: Wed, 23 Feb 2011 09:06:50 +0000 (+0000) Subject: afkey: add sparse annotation about rcu X-Git-Tag: v2.6.39-rc1~468^2~285 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ada440e3b5c3c155c2a4d73c433b3462086dbb4a;p=platform%2Fupstream%2Fkernel-adaptation-pc.git afkey: add sparse annotation about rcu Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/net/key/af_key.c b/net/key/af_key.c index d87c22d..60fd2f1 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) } 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(); }