FreeBSD/sys/cam/cam_iosched.c
/*
 * Flush outstanding I/O. Consumers of this library don't know all the
 * queues we may keep, so this allows all I/O to be flushed in one
 * convenient call.
 */
Flush outstanding I/O. Consumers of this library don't know all the
queues we may keep, so this allows all I/O to be flushed in one
convenient call.
Flush outstanding I / O . Consumers of this library don ' t know all the queues we may keep so this allows all I / O to be flushed in one convenient call .
void
cam_iosched_flush(struct cam_iosched_softc *isc, struct devstat *stp, int err)
{
	bioq_flush(&isc->bio_queue, stp, err);
	bioq_flush(&isc->trim_queue, stp, err);
#ifdef CAM_IOSCHED_DYNAMIC
	if (do_dynamic_iosched)
		bioq_flush(&isc->write_queue, stp, err);
#endif
}
void cam_iosched_flush ( struct cam_iosched_softc * isc , struct devstat * stp , int err ) { bioq_flush ( & isc -> bio_queue , stp , err ) ; bioq_flush ( & isc -> trim_queue , stp , err ) ; #ifdef CAM_IOSCHED_DYNAMIC if ( do_dynamic_iosched ) bioq_flush ( & isc -> write_queue , stp , err ) ; #endif }
Flush outstanding I/O.
Flush outstanding I / O .