FreeBSD/sys/geom/sched/g_sched.c
/*
 * Stop the request flow directed to the proxy, redirecting the new
 * requests to the me.gs_pending queue.
 */
Stop the request flow directed to the proxy, redirecting the new
requests to the me.gs_pending queue.
Stop the request flow directed to the proxy redirecting the new requests to the me . gs_pending queue .
static struct g_provider *
g_detach_proxy(struct g_geom *gp)
{
	struct g_consumer *cp;
	struct g_provider *pp, *newpp;
	do {
		pp = LIST_FIRST(&gp->provider);
		if (pp == NULL)
			break;
		cp = LIST_FIRST(&gp->consumer);
		if (cp == NULL)
			break;
		newpp = cp->provider;
		if (newpp == NULL)
			break;
		me.gs_npending = 0;
		pp->geom->start = g_sched_temporary_start;
		return (pp);
	} while (0);
	printf("%s error detaching proxy %s\n", __FUNCTION__, gp->name);
	return (NULL);
}
static struct g_provider * g_detach_proxy ( struct g_geom * gp ) { struct g_consumer * cp ; struct g_provider * pp , * newpp ; do { pp = LIST_FIRST ( & gp -> provider ) ; if ( pp == NULL ) break ; cp = LIST_FIRST ( & gp -> consumer ) ; if ( cp == NULL ) break ; newpp = cp -> provider ; if ( newpp == NULL ) break ; me . gs_npending = 0 ; pp -> geom -> start = g_sched_temporary_start ; return ( pp ) ; } while ( 0 ) ; printf ( " \n " , __FUNCTION__ , gp -> name ) ; return ( NULL ) ; }
Stop the request flow directed to the proxy, redirecting the new
 requests to the me.gs_pending queue.
Stop the request flow directed to the proxy redirecting the new requests to the me . gs_pending queue .