summaryrefslogtreecommitdiff
path: root/fs/nfs
diff options
context:
space:
mode:
authorBenjamin Coddington <bcodding@redhat.com>2023-06-15 21:07:28 +0300
committerTrond Myklebust <trond.myklebust@hammerspace.com>2023-06-19 22:06:07 +0300
commitd97c05897757a5d7fa131073d04a2fb29b5836ee (patch)
treeb5a554d50346fd195580b0c17d77a3f6bcb874ca /fs/nfs
parente13b549319a684dd80c4cc25e9567a5c84007e32 (diff)
downloadlinux-d97c05897757a5d7fa131073d04a2fb29b5836ee.tar.xz
NFS: add a sysfs link to the lockd rpc_client
After lockd is started, add a symlink for lockd's rpc_client under NFS' superblock sysfs. Signed-off-by: Benjamin Coddington <bcodding@redhat.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index 745c661429f2..48c9d8411c0e 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -599,6 +599,7 @@ static int nfs_start_lockd(struct nfs_server *server)
server->nlm_host = host;
server->destroy = nfs_destroy_server;
+ nfs_sysfs_link_rpc_client(server, nlmclnt_rpc_clnt(host), NULL);
return 0;
}