FreeBSD/sys/cam/cam_iosched.c
/*
 * Put back a trim that you weren't able to actually schedule this time.
 */
Put back a trim that you weren't able to actually schedule this time.
Put back a trim that you weren ' t able to actually schedule this time .
void
cam_iosched_put_back_trim(struct cam_iosched_softc *isc, struct bio *bp)
{
	bioq_insert_head(&isc->trim_queue, bp);
#ifdef CAM_IOSCHED_DYNAMIC
	isc->trim_stats.queued++;
	isc->trim_stats.total--;		
	isc->trim_stats.pending--;
#endif
}
void cam_iosched_put_back_trim ( struct cam_iosched_softc * isc , struct bio * bp ) { bioq_insert_head ( & isc -> trim_queue , bp ) ; #ifdef CAM_IOSCHED_DYNAMIC isc -> trim_stats . queued ++ ; isc -> trim_stats . total -- ; isc -> trim_stats . pending -- ; #endif }
Put back a trim that you weren't able to actually schedule this time.
Put back a trim that you weren ' t able to actually schedule this time .
/* since we put it back, don't double count */