summaryrefslogtreecommitdiff
path: root/fs/nfs/sysfs.h
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2020-10-14 22:22:11 +0300
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2020-10-15 20:31:08 +0300
commit094eca37193c516106ef8ed7f60ed058ed9fc458 (patch)
tree085d1bbd89c470bea2b2039a4688f7769c3f1987 /fs/nfs/sysfs.h
parent61ca2c4afd9d108899e0fa48e7b1cfc9afe80596 (diff)
downloadlinux-094eca37193c516106ef8ed7f60ed058ed9fc458.tar.xz
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;