/* Drop a reference to the global map of cpus to pools. When the last reference is dropped, the map data is freed; this allows the sysadmin to change the pool mode using the pool_mode module option without rebooting or re-loading sunrpc.ko.  */
static void svc_pool_map_put(void)
/* Drop a reference to the global map of cpus to pools. When the last reference is dropped, the map data is freed; this allows the sysadmin to change the pool mode using the pool_mode module option without rebooting or re-loading sunrpc.ko.  */
static void svc_pool_map_put(void)
{
	struct svc_pool_map *m = &svc_pool_map;
	mutex_lock(&svc_pool_map_mutex);
	if (!--m->count) {
		m->mode = SVC_POOL_DEFAULT;
		kfree(m->to_pool);
		kfree(m->pool_to);
		m->npools = 0;
	}
	mutex_unlock(&svc_pool_map_mutex);
}