diff options
author | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2023-12-01 00:25:58 +0300 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2024-01-04 18:47:56 +0300 |
commit | a902f3dec70a46332a8c99604de384fbabd734e5 (patch) | |
tree | 01f4c806113e09f67d62a9c5a9d020e402e56c41 /net/sunrpc/xprtmultipath.c | |
parent | 5f1e77b2285b47c216b44e513071549cf006a309 (diff) | |
download | linux-a902f3dec70a46332a8c99604de384fbabd734e5.tar.xz |
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 'net/sunrpc/xprtmultipath.c')
0 files changed, 0 insertions, 0 deletions