NFSv4: Fix up RCU annotations for struct nfs_netns_client
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 14 Oct 2020 19:22:11 +0000 (15:22 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 15 Oct 2020 17:31:08 +0000 (13:31 -0400)
commit094eca37193c516106ef8ed7f60ed058ed9fc458
tree085d1bbd89c470bea2b2039a4688f7769c3f1987
parent61ca2c4afd9d108899e0fa48e7b1cfc9afe80596
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>
fs/nfs/sysfs.c
fs/nfs/sysfs.h