Anna Schumaker a902f3dec7 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>
2024-01-04 10:47:56 -05:00
..
2022-05-19 12:25:38 -04:00
2022-05-19 12:25:38 -04:00
2021-07-08 14:03:23 -04:00
2023-10-16 12:44:10 -04:00
2023-08-29 17:45:22 -04:00
2023-08-31 15:32:18 -07:00
2023-08-31 15:36:41 -07:00