FreeBSD/sys/geom/mirror/g_mirror.c
/*
 * Releases delayed sync requests which don't collide anymore with regular
 * requests.
 */
Releases delayed sync requests which don't collide anymore with regular
requests.
Releases delayed sync requests which don ' t collide anymore with regular requests .
static void
g_mirror_sync_release(struct g_mirror_softc *sc)
{
	struct bio *bp, *bp2;
	TAILQ_FOREACH_SAFE(bp, &sc->sc_sync_delayed.queue, bio_queue, bp2) {
		if (g_mirror_regular_collision(sc, bp))
			continue;
		bioq_remove(&sc->sc_sync_delayed, bp);
		G_MIRROR_LOGREQ(2, bp,
		    "Releasing delayed synchronization request.");
		g_io_request(bp, bp->bio_from);
	}
}
static void g_mirror_sync_release ( struct g_mirror_softc * sc ) { struct bio * bp , * bp2 ; TAILQ_FOREACH_SAFE ( bp , & sc -> sc_sync_delayed . queue , bio_queue , bp2 ) { if ( g_mirror_regular_collision ( sc , bp ) ) continue ; bioq_remove ( & sc -> sc_sync_delayed , bp ) ; G_MIRROR_LOGREQ ( 2 , bp , " " ) ; g_io_request ( bp , bp -> bio_from ) ; } }
Releases delayed sync requests which don't collide anymore with regular
 requests.
Releases delayed sync requests which don ' t collide anymore with regular requests .