Lines Matching refs:nfsd_serv

53 struct svc_serv 		*nfsd_serv;  variable
178 if (nfsd_serv) in nfsd_nrthreads()
179 rv = nfsd_serv->sv_nrthreads; in nfsd_nrthreads()
187 if (!list_empty(&nfsd_serv->sv_permsocks)) in nfsd_init_socks()
190 error = svc_create_xprt(nfsd_serv, "udp", &init_net, PF_INET, port, in nfsd_init_socks()
195 error = svc_create_xprt(nfsd_serv, "tcp", &init_net, PF_INET, port, in nfsd_init_socks()
256 nfsd_serv = NULL; in nfsd_last_thread()
312 if (nfsd_serv) { in nfsd_create_serv()
313 svc_get(nfsd_serv); in nfsd_create_serv()
334 nfsd_serv = svc_create_pooled(&nfsd_program, nfsd_max_blksize, in nfsd_create_serv()
336 if (nfsd_serv == NULL) in nfsd_create_serv()
346 if (nfsd_serv == NULL) in nfsd_nrpools()
349 return nfsd_serv->sv_nrpools; in nfsd_nrpools()
356 if (nfsd_serv != NULL) { in nfsd_get_nrthreads()
357 for (i = 0; i < nfsd_serv->sv_nrpools && i < n; i++) in nfsd_get_nrthreads()
358 nthreads[i] = nfsd_serv->sv_pools[i].sp_nrthreads; in nfsd_get_nrthreads()
372 if (nfsd_serv == NULL || n <= 0) in nfsd_set_nrthreads()
375 if (n > nfsd_serv->sv_nrpools) in nfsd_set_nrthreads()
376 n = nfsd_serv->sv_nrpools; in nfsd_set_nrthreads()
406 svc_get(nfsd_serv); in nfsd_set_nrthreads()
408 err = svc_set_num_threads(nfsd_serv, &nfsd_serv->sv_pools[i], in nfsd_set_nrthreads()
413 svc_destroy(nfsd_serv); in nfsd_set_nrthreads()
436 if (nrservs == 0 && nfsd_serv == NULL) in nfsd_svc()
448 error = svc_set_num_threads(nfsd_serv, NULL, nrservs); in nfsd_svc()
455 error = nfsd_serv->sv_nrthreads - 1; in nfsd_svc()
460 svc_destroy(nfsd_serv); /* Release server */ in nfsd_svc()
644 if (nfsd_serv == NULL) { in nfsd_pool_stats_open()
649 svc_get(nfsd_serv); in nfsd_pool_stats_open()
650 ret = svc_pool_stats_open(nfsd_serv, file); in nfsd_pool_stats_open()
660 svc_destroy(nfsd_serv); in nfsd_pool_stats_release()