Home
last modified time | relevance | path

Searched refs:xps (Results 1 – 5 of 5) sorted by relevance

/net/sunrpc/
Dxprtmultipath.c24 typedef struct rpc_xprt *(*xprt_switch_find_xprt_t)(struct rpc_xprt_switch *xps,
31 static void xprt_switch_add_xprt_locked(struct rpc_xprt_switch *xps, in xprt_switch_add_xprt_locked() argument
36 list_add_tail_rcu(&xprt->xprt_switch, &xps->xps_xprt_list); in xprt_switch_add_xprt_locked()
38 if (xps->xps_nxprts == 0) in xprt_switch_add_xprt_locked()
39 xps->xps_net = xprt->xprt_net; in xprt_switch_add_xprt_locked()
40 xps->xps_nxprts++; in xprt_switch_add_xprt_locked()
41 xps->xps_nactive++; in xprt_switch_add_xprt_locked()
51 void rpc_xprt_switch_add_xprt(struct rpc_xprt_switch *xps, in rpc_xprt_switch_add_xprt() argument
56 spin_lock(&xps->xps_lock); in rpc_xprt_switch_add_xprt()
57 if (xps->xps_net == xprt->xprt_net || xps->xps_net == NULL) in rpc_xprt_switch_add_xprt()
[all …]
Dclnt.c364 struct rpc_xprt_switch *xps, in rpc_new_client() argument
420 xprt_iter_init(&clnt->cl_xpi, xps); in rpc_new_client()
421 xprt_switch_put(xps); in rpc_new_client()
433 rpc_sysfs_client_setup(clnt, xps, rpc_net_ns(clnt)); in rpc_new_client()
453 xprt_switch_put(xps); in rpc_new_client()
463 struct rpc_xprt_switch *xps; in rpc_create_xprt() local
467 xps = args->bc_xprt->xpt_bc_xps; in rpc_create_xprt()
468 xprt_switch_get(xps); in rpc_create_xprt()
470 xps = xprt_switch_alloc(xprt, GFP_KERNEL); in rpc_create_xprt()
471 if (xps == NULL) { in rpc_create_xprt()
[all …]
Dsysfs.c283 struct rpc_xprt_switch *xps = rpc_sysfs_xprt_kobj_get_xprt_switch(kobj); in rpc_sysfs_xprt_state_change() local
285 if (!xprt || !xps) { in rpc_sysfs_xprt_state_change()
311 spin_lock(&xps->xps_lock); in rpc_sysfs_xprt_state_change()
312 xps->xps_nactive--; in rpc_sysfs_xprt_state_change()
313 spin_unlock(&xps->xps_lock); in rpc_sysfs_xprt_state_change()
317 spin_lock(&xps->xps_lock); in rpc_sysfs_xprt_state_change()
318 xps->xps_nactive++; in rpc_sysfs_xprt_state_change()
319 spin_unlock(&xps->xps_lock); in rpc_sysfs_xprt_state_change()
330 rpc_xprt_switch_remove_xprt(xps, xprt); in rpc_sysfs_xprt_state_change()
342 xprt_switch_put(xps); in rpc_sysfs_xprt_state_change()
Drpcb_clnt.c626 struct rpc_xprt_switch *xps = rcu_access_pointer(clnt->cl_xpi.xpi_xpswitch); in rpcb_find_transport_owner() local
629 if (rcu_access_pointer(parent->cl_xpi.xpi_xpswitch) != xps) in rpcb_find_transport_owner()
/net/sunrpc/auth_gss/
Dauth_gss.c1214 struct rpc_xprt_switch *xps = rcu_access_pointer(clnt->cl_xpi.xpi_xpswitch); in gss_create() local
1219 if (rcu_access_pointer(parent->cl_xpi.xpi_xpswitch) != xps) in gss_create()