summaryrefslogtreecommitdiffstats
path: root/fs/lockd
diff options
context:
space:
mode:
authorBenjamin Coddington <bcodding@redhat.com>2023-06-15 20:07:28 +0200
committerTrond Myklebust <trond.myklebust@hammerspace.com>2023-06-19 21:06:07 +0200
commitd97c05897757a5d7fa131073d04a2fb29b5836ee (patch)
treeb5a554d50346fd195580b0c17d77a3f6bcb874ca /fs/lockd
parentNFS: Add sysfs links to sunrpc clients for nfs_clients (diff)
downloadlinux-d97c05897757a5d7fa131073d04a2fb29b5836ee.tar.xz
linux-d97c05897757a5d7fa131073d04a2fb29b5836ee.zip
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/lockd')
-rw-r--r--fs/lockd/clntlock.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/lockd/clntlock.c b/fs/lockd/clntlock.c
index e3972aa3045a..5d85715be763 100644
--- a/fs/lockd/clntlock.c
+++ b/fs/lockd/clntlock.c
@@ -93,6 +93,12 @@ void nlmclnt_prepare_block(struct nlm_wait *block, struct nlm_host *host, struct
block->b_status = nlm_lck_blocked;
}
+struct rpc_clnt *nlmclnt_rpc_clnt(struct nlm_host *host)
+{
+ return host->h_rpcclnt;
+}
+EXPORT_SYMBOL_GPL(nlmclnt_rpc_clnt);
+
/*
* Queue up a lock for blocking so that the GRANTED request can see it
*/