nfs: expose /proc/net/sunrpc/nfs in net namespaces
authorJosef Bacik <josef@toxicpanda.com>
Thu, 15 Feb 2024 19:57:31 +0000 (14:57 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 9 Mar 2024 14:14:50 +0000 (09:14 -0500)
commitd47151b79e3220e72ae323b8b8e9d6da20dc884e
tree060a119c633a3a9aee92d3eabbd901cbdac53af0
parent2057a48d0dd00c6a2a94ded7df2bf1d3f2a4a0da
nfs: expose /proc/net/sunrpc/nfs in net namespaces

We're using nfs mounts inside of containers in production and noticed
that the nfs stats are not exposed in /proc.  This is a problem for us
as we use these stats for monitoring, and have to do this awkward bind
mount from the main host into the container in order to get to these
states.

Add the rpc_proc_register call to the pernet operations entry and exit
points so these stats can be exposed inside of network namespaces.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/inode.c