mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] net: xfrm: Add '_rcu' tag for rcu protected pointer in netns_xfrm
@ 2019-03-04  5:46 Su Yanjun
  2019-03-04  7:47 ` kbuild test robot
  2019-03-04  8:55 ` Sergei Shtylyov
  0 siblings, 2 replies; 3+ messages in thread
From: Su Yanjun @ 2019-03-04  5:46 UTC (permalink / raw)
  To: davem, steffen.klassert, fw; +Cc: netdev, linux-kernel, suyj.fnst

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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-03-04  8:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-04  5:46 [PATCH] net: xfrm: Add '_rcu' tag for rcu protected pointer in netns_xfrm Su Yanjun
2019-03-04  7:47 ` kbuild test robot
2019-03-04  8:55 ` Sergei Shtylyov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®