Lines Matching refs:nfsd_serv
280 if (nn->nfsd_serv) in nfsd_nrthreads()
281 rv = nn->nfsd_serv->sv_nrthreads; in nfsd_nrthreads()
291 if (!list_empty(&nn->nfsd_serv->sv_permsocks)) in nfsd_init_socks()
294 error = svc_create_xprt(nn->nfsd_serv, "udp", net, PF_INET, NFS_PORT, in nfsd_init_socks()
299 error = svc_create_xprt(nn->nfsd_serv, "tcp", net, PF_INET, NFS_PORT, in nfsd_init_socks()
446 if (nn->nfsd_serv) { in nfsd_inetaddr_event()
450 svc_age_temp_xprts_now(nn->nfsd_serv, (struct sockaddr *)&sin); in nfsd_inetaddr_event()
477 if (nn->nfsd_serv) { in nfsd_inet6addr_event()
483 svc_age_temp_xprts_now(nn->nfsd_serv, (struct sockaddr *)&sin6); in nfsd_inet6addr_event()
603 nn->nfsd_serv = NULL; in nfsd_complete_shutdown()
613 serv = nn->nfsd_serv; in nfsd_shutdown_threads()
634 if (nn->nfsd_serv) { in nfsd_create_serv()
635 svc_get(nn->nfsd_serv); in nfsd_create_serv()
641 nn->nfsd_serv = svc_create_pooled(&nfsd_program, nfsd_max_blksize, in nfsd_create_serv()
643 if (nn->nfsd_serv == NULL) in nfsd_create_serv()
647 nn->nfsd_serv->sv_maxconn = nn->max_connections; in nfsd_create_serv()
648 error = svc_bind(nn->nfsd_serv, net); in nfsd_create_serv()
650 svc_destroy(nn->nfsd_serv); in nfsd_create_serv()
672 if (nn->nfsd_serv == NULL) in nfsd_nrpools()
675 return nn->nfsd_serv->sv_nrpools; in nfsd_nrpools()
683 if (nn->nfsd_serv != NULL) { in nfsd_get_nrthreads()
684 for (i = 0; i < nn->nfsd_serv->sv_nrpools && i < n; i++) in nfsd_get_nrthreads()
685 nthreads[i] = nn->nfsd_serv->sv_pools[i].sp_nrthreads; in nfsd_get_nrthreads()
694 int destroy = (nn->nfsd_serv->sv_nrthreads == 1); in nfsd_destroy()
697 svc_shutdown_net(nn->nfsd_serv, net); in nfsd_destroy()
698 svc_destroy(nn->nfsd_serv); in nfsd_destroy()
712 if (nn->nfsd_serv == NULL || n <= 0) in nfsd_set_nrthreads()
715 if (n > nn->nfsd_serv->sv_nrpools) in nfsd_set_nrthreads()
716 n = nn->nfsd_serv->sv_nrpools; in nfsd_set_nrthreads()
745 svc_get(nn->nfsd_serv); in nfsd_set_nrthreads()
747 err = nn->nfsd_serv->sv_ops->svo_setup(nn->nfsd_serv, in nfsd_set_nrthreads()
748 &nn->nfsd_serv->sv_pools[i], nthreads[i]); in nfsd_set_nrthreads()
775 if (nrservs == 0 && nn->nfsd_serv == NULL) in nfsd_svc()
787 error = nn->nfsd_serv->sv_ops->svo_setup(nn->nfsd_serv, in nfsd_svc()
795 error = nn->nfsd_serv->sv_nrthreads - 1; in nfsd_svc()
1103 if (nn->nfsd_serv == NULL) { in nfsd_pool_stats_open()
1108 svc_get(nn->nfsd_serv); in nfsd_pool_stats_open()
1109 ret = svc_pool_stats_open(nn->nfsd_serv, file); in nfsd_pool_stats_open()