FreeBSD/sys/dev/xen/blkfront/blkfront.c
/*------------------------------- Dump Support -------------------------------*/
/**
 * Quiesce the disk writes for a dump file before allowing the next buffer.
 */
Dump Support
Quiesce the disk writes for a dump file before allowing the next buffer.
Dump Support Quiesce the disk writes for a dump file before allowing the next buffer .
static void
xbd_quiesce(struct xbd_softc *sc)
{
	int mtd;
	while (xbd_queue_length(sc, XBD_Q_BUSY) != 0) {
		RING_FINAL_CHECK_FOR_RESPONSES(&sc->xbd_ring, mtd);
		if (mtd) {
			xbd_int(sc);
		}
		if (xbd_queue_length(sc, XBD_Q_BUSY) != 0) {
			HYPERVISOR_yield();
		}
	}
}
static void xbd_quiesce ( struct xbd_softc * sc ) { int mtd ; while ( xbd_queue_length ( sc , XBD_Q_BUSY ) != 0 ) { RING_FINAL_CHECK_FOR_RESPONSES ( & sc -> xbd_ring , mtd ) ; if ( mtd ) { xbd_int ( sc ) ; } if ( xbd_queue_length ( sc , XBD_Q_BUSY ) != 0 ) { HYPERVISOR_yield ( ) ; } } }
Dump Support
 Quiesce the disk writes for a dump file before allowing the next buffer.
Dump Support Quiesce the disk writes for a dump file before allowing the next buffer .
// While there are outstanding requests /* Received request completions, update queue. */ /*
			 * Still pending requests, wait for the disk i/o
			 * to complete.
			 */