Home
last modified time | relevance | path

Searched refs:nrservs (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/fs/nfs/
Dcallback.c163 int nrservs = nfs_callback_nr_threads; in nfs_callback_start_svc() local
168 if (nrservs < NFS4_MIN_NR_CALLBACK_THREADS) in nfs_callback_start_svc()
169 nrservs = NFS4_MIN_NR_CALLBACK_THREADS; in nfs_callback_start_svc()
171 if (serv->sv_nrthreads == nrservs) in nfs_callback_start_svc()
174 ret = svc_set_num_threads(serv, NULL, nrservs); in nfs_callback_start_svc()
/linux-6.1.9/net/sunrpc/
Dsvc.c743 svc_start_kthreads(struct svc_serv *serv, struct svc_pool *pool, int nrservs) in svc_start_kthreads() argument
752 nrservs--; in svc_start_kthreads()
773 } while (nrservs > 0); in svc_start_kthreads()
788 svc_stop_kthreads(struct svc_serv *serv, struct svc_pool *pool, int nrservs) in svc_stop_kthreads() argument
799 nrservs++; in svc_stop_kthreads()
800 } while (nrservs < 0); in svc_stop_kthreads()
805 svc_set_num_threads(struct svc_serv *serv, struct svc_pool *pool, int nrservs) in svc_set_num_threads() argument
808 nrservs -= serv->sv_nrthreads; in svc_set_num_threads()
811 nrservs -= pool->sp_nrthreads; in svc_set_num_threads()
815 if (nrservs > 0) in svc_set_num_threads()
[all …]
/linux-6.1.9/fs/nfsd/
Dnfssvc.c786 nfsd_svc(int nrservs, struct net *net, const struct cred *cred) in nfsd_svc() argument
795 nrservs = max(nrservs, 0); in nfsd_svc()
796 nrservs = min(nrservs, NFSD_MAXSERVS); in nfsd_svc()
799 if (nrservs == 0 && nn->nfsd_serv == NULL) in nfsd_svc()
814 error = svc_set_num_threads(nn->nfsd_serv, NULL, nrservs); in nfsd_svc()
Dnfsd.h89 int nfsd_svc(int nrservs, struct net *net, const struct cred *cred);