summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2022-02-28 10:09:23 -0500
committerTrond Myklebust <trond.myklebust@hammerspace.com>2022-02-28 10:09:23 -0500
commitb38e09b9b613ee608c87bc00979db891ee9f0538 (patch)
tree25c44d037a4a3fc02c63b5720cc13d1f7949132c /fs/nfs
parent6c984083ec2453dfd3fcf98f392f34500c73e3f2 (diff)
downloadlinux-b38e09b9b613ee608c87bc00979db891ee9f0538.tar.bz2
Revert "NFSv4: use unique client identifiers in network namespaces"
This reverts commit 50c790a0b69bdc420f00f30bdf348d6c90194c78. The functionality is believed to be capable of causing regressions in existing setups, so the author has requested that it be reverted. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/sysfs.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/fs/nfs/sysfs.c b/fs/nfs/sysfs.c
index 886ed1eec2e5..a6f740366963 100644
--- a/fs/nfs/sysfs.c
+++ b/fs/nfs/sysfs.c
@@ -151,18 +151,6 @@ static struct kobj_type nfs_netns_client_type = {
.namespace = nfs_netns_client_namespace,
};
-static void assign_unique_clientid(struct nfs_netns_client *clp)
-{
- unsigned char client_uuid[16];
- char *uuid_str = kmalloc(UUID_STRING_LEN + 1, GFP_KERNEL);
-
- if (uuid_str) {
- generate_random_uuid(client_uuid);
- sprintf(uuid_str, "%pU", client_uuid);
- rcu_assign_pointer(clp->identifier, uuid_str);
- }
-}
-
static struct nfs_netns_client *nfs_netns_client_alloc(struct kobject *parent,
struct net *net)
{
@@ -170,8 +158,6 @@ static struct nfs_netns_client *nfs_netns_client_alloc(struct kobject *parent,
p = kzalloc(sizeof(*p), GFP_KERNEL);
if (p) {
- if (net != &init_net)
- assign_unique_clientid(p);
p->net = net;
p->kobject.kset = nfs_client_kset;
if (kobject_init_and_add(&p->kobject, &nfs_netns_client_type,