diff options
author | Eric Dumazet <edumazet@google.com> | 2022-01-27 23:09:35 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-01-28 17:47:55 +0300 |
commit | 6cdef8a6ee748ec522aabee049633b16b4115f73 (patch) | |
tree | be3bd237b6d5973dc25f157a05b8bd1847313c4f /include/linux/sunrpc/svc_xprt.h | |
parent | 960b00336bab06498c7f24cbb62b1f1b8a0acca0 (diff) | |
download | linux-6cdef8a6ee748ec522aabee049633b16b4115f73.tar.xz |
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.h | 1 |
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 */ |