aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc/svc_xprt.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2022-01-27 12:09:35 -0800
committerDavid S. Miller <davem@davemloft.net>2022-01-28 14:47:55 +0000
commit6cdef8a6ee748ec522aabee049633b16b4115f73 (patch)
treebe3bd237b6d5973dc25f157a05b8bd1847313c4f /include/linux/sunrpc/svc_xprt.h
parentMerge branch 'ethtool-hdrsplit' (diff)
downloadlinux-dev-6cdef8a6ee748ec522aabee049633b16b4115f73.tar.xz
linux-dev-6cdef8a6ee748ec522aabee049633b16b4115f73.zip
SUNRPC: add netns refcount tracker to struct svc_xprt
struct svc_xprt holds a long lived reference to a netns, it is worth tracking it. Signed-off-by: Eric Dumazet <edumazet@google.com> Acked-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/sunrpc/svc_xprt.h')
-rw-r--r--include/linux/sunrpc/svc_xprt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/svc_xprt.h b/include/linux/sunrpc/svc_xprt.h
index 571f605bc91e..382af90320ac 100644
--- a/include/linux/sunrpc/svc_xprt.h
+++ b/include/linux/sunrpc/svc_xprt.h
@@ -88,6 +88,7 @@ struct svc_xprt {
struct list_head xpt_users; /* callbacks on free */
struct net *xpt_net;
+ netns_tracker ns_tracker;
const struct cred *xpt_cred;
struct rpc_xprt *xpt_bc_xprt; /* NFSv4.1 backchannel */
struct rpc_xprt_switch *xpt_bc_xps; /* NFSv4.1 backchannel */