Lines Matching defs:sn
124 void init_gssp_clnt(struct sunrpc_net *sn)
126 mutex_init(&sn->gssp_lock);
127 sn->gssp_clnt = NULL;
132 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
136 mutex_lock(&sn->gssp_lock);
139 if (sn->gssp_clnt)
140 rpc_shutdown_client(sn->gssp_clnt);
141 sn->gssp_clnt = clnt;
143 mutex_unlock(&sn->gssp_lock);
147 void clear_gssp_clnt(struct sunrpc_net *sn)
149 mutex_lock(&sn->gssp_lock);
150 if (sn->gssp_clnt) {
151 rpc_shutdown_client(sn->gssp_clnt);
152 sn->gssp_clnt = NULL;
154 mutex_unlock(&sn->gssp_lock);
157 static struct rpc_clnt *get_gssp_clnt(struct sunrpc_net *sn)
161 mutex_lock(&sn->gssp_lock);
162 clnt = sn->gssp_clnt;
165 mutex_unlock(&sn->gssp_lock);
171 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
175 clnt = get_gssp_clnt(sn);