Lines Matching full:dss

62 	struct nfs4_ds_server *dss;  in nfs4_find_ds_client()  local
65 list_for_each_entry_rcu(dss, &ds_clp->cl_ds_clients, list) { in nfs4_find_ds_client()
66 if (dss->rpc_clnt->cl_auth->au_flavor != flavor) in nfs4_find_ds_client()
70 dss = NULL; in nfs4_find_ds_client()
73 return dss; in nfs4_find_ds_client()
80 struct nfs4_ds_server *dss; in nfs4_add_ds_client() local
83 list_for_each_entry(dss, &ds_clp->cl_ds_clients, list) { in nfs4_add_ds_client()
84 if (dss->rpc_clnt->cl_auth->au_flavor != flavor) in nfs4_add_ds_client()
90 dss = new; in nfs4_add_ds_client()
93 return dss; in nfs4_add_ds_client()
99 struct nfs4_ds_server *dss; in nfs4_alloc_ds_server() local
101 dss = kmalloc(sizeof(*dss), GFP_NOFS); in nfs4_alloc_ds_server()
102 if (dss == NULL) in nfs4_alloc_ds_server()
105 dss->rpc_clnt = rpc_clone_client_set_auth(ds_clp->cl_rpcclient, flavor); in nfs4_alloc_ds_server()
106 if (IS_ERR(dss->rpc_clnt)) { in nfs4_alloc_ds_server()
107 int err = PTR_ERR(dss->rpc_clnt); in nfs4_alloc_ds_server()
108 kfree (dss); in nfs4_alloc_ds_server()
111 INIT_LIST_HEAD(&dss->list); in nfs4_alloc_ds_server()
113 return dss; in nfs4_alloc_ds_server()
117 nfs4_free_ds_server(struct nfs4_ds_server *dss) in nfs4_free_ds_server() argument
119 rpc_release_client(dss->rpc_clnt); in nfs4_free_ds_server()
120 kfree(dss); in nfs4_free_ds_server()
134 struct nfs4_ds_server *dss, *new; in nfs4_find_or_create_ds_client() local
137 dss = nfs4_find_ds_client(ds_clp, flavor); in nfs4_find_or_create_ds_client()
138 if (dss != NULL) in nfs4_find_or_create_ds_client()
143 dss = nfs4_add_ds_client(ds_clp, flavor, new); in nfs4_find_or_create_ds_client()
144 if (dss != new) in nfs4_find_or_create_ds_client()
147 return dss->rpc_clnt; in nfs4_find_or_create_ds_client()
154 struct nfs4_ds_server *dss; in nfs4_shutdown_ds_clients() local
157 dss = list_entry(clp->cl_ds_clients.next, in nfs4_shutdown_ds_clients()
159 list_del(&dss->list); in nfs4_shutdown_ds_clients()
160 rpc_shutdown_client(dss->rpc_clnt); in nfs4_shutdown_ds_clients()
161 kfree (dss); in nfs4_shutdown_ds_clients()