aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/sysfs.h
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2020-10-14 15:22:11 -0400
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2020-10-15 13:31:08 -0400
commit094eca37193c516106ef8ed7f60ed058ed9fc458 (patch)
tree085d1bbd89c470bea2b2039a4688f7769c3f1987 /fs/nfs/sysfs.h
parentNFS: Only reference user namespace from nfs4idmap struct instead of cred (diff)
downloadlinux-dev-094eca37193c516106ef8ed7f60ed058ed9fc458.tar.xz
linux-dev-094eca37193c516106ef8ed7f60ed058ed9fc458.zip
NFSv4: Fix up RCU annotations for struct nfs_netns_client
The identifier is read as an RCU protected string. Its value may be changed during the lifetime of the network namespace by writing a new string into the sysfs pseudofile (at which point, we free the old string only after a call to synchronize_rcu()). Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/sysfs.h')
-rw-r--r--fs/nfs/sysfs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/sysfs.h b/fs/nfs/sysfs.h
index ebcbdc40483b..5501ef573c32 100644
--- a/fs/nfs/sysfs.h
+++ b/fs/nfs/sysfs.h
@@ -11,7 +11,7 @@
struct nfs_netns_client {
struct kobject kobject;
struct net *net;
- const char *identifier;
+ const char __rcu *identifier;
};
extern struct kobject *nfs_client_kobj;