/* Choose a pool in which to create a new thread, for svc_set_num_threads  */
static struct svc_pool* choose_pool(struct svc_serv *serv, struct svc_pool *pool, unsigned int *state)
/* Choose a pool in which to create a new thread, for svc_set_num_threads  */
static struct svc_pool* choose_pool(struct svc_serv *serv, struct svc_pool *pool, unsigned int *state)
{
	if (pool != NULL)
		return pool;
	return &serv->sv_pools[(*state)++ % serv->sv_nrpools];
}