diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2020-10-14 15:22:11 -0400 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2020-10-15 13:31:08 -0400 |
commit | 094eca37193c516106ef8ed7f60ed058ed9fc458 (patch) | |
tree | 085d1bbd89c470bea2b2039a4688f7769c3f1987 /fs/nfs/sysfs.h | |
parent | 61ca2c4afd9d108899e0fa48e7b1cfc9afe80596 (diff) | |
download | linux-094eca37193c516106ef8ed7f60ed058ed9fc458.tar.bz2 |
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.h | 2 |
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; |