From: Su Yanjun <suyj.fnst@cn.fujitsu.com>
To: <davem@davemloft.net>, <steffen.klassert@secunet.com>, <fw@strlen.de>
Cc: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<suyj.fnst@cn.fujitsu.com>
Subject: [PATCH] net: xfrm: Add '_rcu' tag for rcu protected pointer in netns_xfrm
Date: Mon, 4 Mar 2019 00:46:43 -0500 [thread overview]
Message-ID: <1551678403-23132-1-git-send-email-suyj.fnst@cn.fujitsu.com> (raw)
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
next reply other threads:[~2019-03-04 5:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-04 5:46 Su Yanjun [this message]
2019-03-04 7:47 ` kbuild test robot
2019-03-04 8:55 ` Sergei Shtylyov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1551678403-23132-1-git-send-email-suyj.fnst@cn.fujitsu.com \
--to=suyj.fnst@cn.fujitsu.com \
--cc=davem@davemloft.net \
--cc=fw@strlen.de \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=steffen.klassert@secunet.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®