aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAnna Schumaker <Anna.Schumaker@Netapp.com>2023-11-30 16:25:58 -0500
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2024-01-04 10:47:56 -0500
commita902f3dec70a46332a8c99604de384fbabd734e5 (patch)
tree01f4c806113e09f67d62a9c5a9d020e402e56c41 /tools/perf/scripts/python
parentSUNRPC: Remove unused function rpc_clnt_xprt_switch_put() (diff)
downloadlinux-a902f3dec70a46332a8c99604de384fbabd734e5.tar.gz
linux-a902f3dec70a46332a8c99604de384fbabd734e5.zip
SUNRPC: Create a helper function for accessing the rpc_clnt's xprt_switch
This function takes the necessary rcu read lock to dereference the client's rpc_xprt_switch and bump the reference count so it doesn't disappear underneath us before returning. This does mean that callers are responsible for calling xprt_switch_put() on the returned object when they are done with it. Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions