Lines Matching refs:dss
59 struct nfs4_ds_server *dss; in nfs4_find_ds_client() local
62 list_for_each_entry_rcu(dss, &ds_clp->cl_ds_clients, list) { in nfs4_find_ds_client()
63 if (dss->rpc_clnt->cl_auth->au_flavor != flavor) in nfs4_find_ds_client()
67 dss = NULL; in nfs4_find_ds_client()
70 return dss; in nfs4_find_ds_client()
77 struct nfs4_ds_server *dss; in nfs4_add_ds_client() local
80 list_for_each_entry(dss, &ds_clp->cl_ds_clients, list) { in nfs4_add_ds_client()
81 if (dss->rpc_clnt->cl_auth->au_flavor != flavor) in nfs4_add_ds_client()
87 dss = new; in nfs4_add_ds_client()
90 return dss; in nfs4_add_ds_client()
96 struct nfs4_ds_server *dss; in nfs4_alloc_ds_server() local
98 dss = kmalloc(sizeof(*dss), GFP_NOFS); in nfs4_alloc_ds_server()
99 if (dss == NULL) in nfs4_alloc_ds_server()
102 dss->rpc_clnt = rpc_clone_client_set_auth(ds_clp->cl_rpcclient, flavor); in nfs4_alloc_ds_server()
103 if (IS_ERR(dss->rpc_clnt)) { in nfs4_alloc_ds_server()
104 int err = PTR_ERR(dss->rpc_clnt); in nfs4_alloc_ds_server()
105 kfree (dss); in nfs4_alloc_ds_server()
108 INIT_LIST_HEAD(&dss->list); in nfs4_alloc_ds_server()
110 return dss; in nfs4_alloc_ds_server()
114 nfs4_free_ds_server(struct nfs4_ds_server *dss) in nfs4_free_ds_server() argument
116 rpc_release_client(dss->rpc_clnt); in nfs4_free_ds_server()
117 kfree(dss); in nfs4_free_ds_server()
127 struct nfs4_ds_server *dss, *new; in nfs4_find_or_create_ds_client() local
130 dss = nfs4_find_ds_client(ds_clp, flavor); in nfs4_find_or_create_ds_client()
131 if (dss != NULL) in nfs4_find_or_create_ds_client()
136 dss = nfs4_add_ds_client(ds_clp, flavor, new); in nfs4_find_or_create_ds_client()
137 if (dss != new) in nfs4_find_or_create_ds_client()
140 return dss->rpc_clnt; in nfs4_find_or_create_ds_client()
147 struct nfs4_ds_server *dss; in nfs4_shutdown_ds_clients() local
151 dss = list_entry(clp->cl_ds_clients.next, in nfs4_shutdown_ds_clients()
153 list_del(&dss->list); in nfs4_shutdown_ds_clients()
154 rpc_shutdown_client(dss->rpc_clnt); in nfs4_shutdown_ds_clients()
155 kfree (dss); in nfs4_shutdown_ds_clients()