Messages in this thread Patch in this message | | | From | Su Yanjun <> | Subject | [PATCH] net: xfrm: Add '_rcu' tag for rcu protected pointer in netns_xfrm | Date | Mon, 4 Mar 2019 00:46:43 -0500 |
| |
For rcu protected pointers, we'd bettter add '__rcu' for them.
No functional change.
Signed-off-by: Su Yanjun <suyj.fnst@cn.fujitsu.com> --- include/net/netns/xfrm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/net/netns/xfrm.h b/include/net/netns/xfrm.h index 59f45b1..d2a36fb 100644 --- a/include/net/netns/xfrm.h +++ b/include/net/netns/xfrm.h @@ -57,7 +57,7 @@ struct netns_xfrm { struct list_head inexact_bins; - struct sock *nlsk; + struct sock __rcu *nlsk; struct sock *nlsk_stash; u32 sysctl_aevent_etime; -- 2.7.4
| |