NFS: add a sysfs link to the acl rpc_client
authorBenjamin Coddington <bcodding@redhat.com>
Thu, 15 Jun 2023 18:07:29 +0000 (14:07 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 19 Jun 2023 19:06:40 +0000 (15:06 -0400)
Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs3client.c

index 0844f16..eff3802 100644 (file)
@@ -4,6 +4,8 @@
 #include <linux/sunrpc/addr.h>
 #include "internal.h"
 #include "nfs3_fs.h"
+#include "netns.h"
+#include "sysfs.h"
 
 #ifdef CONFIG_NFS_V3_ACL
 static struct rpc_stat         nfsacl_rpcstat = { &nfsacl_program };
@@ -31,6 +33,8 @@ static void nfs_init_server_aclclient(struct nfs_server *server)
        if (IS_ERR(server->client_acl))
                goto out_noacl;
 
+       nfs_sysfs_link_rpc_client(server, server->client_acl, NULL);
+
        /* No errors! Assume that Sun nfsacls are supported */
        server->caps |= NFS_CAP_ACLS;
        return;