Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/cam_iosched.c
Show First 20 Lines • Show All 1,422 Lines • ▼ Show 20 Lines | if (bp->bio_cmd == BIO_WRITE) { | ||||
isc->trim_stats.out++; | isc->trim_stats.out++; | ||||
isc->trim_stats.pending--; | isc->trim_stats.pending--; | ||||
} else if (bp->bio_cmd != BIO_FLUSH) { | } else if (bp->bio_cmd != BIO_FLUSH) { | ||||
if (iosched_debug) | if (iosched_debug) | ||||
printf("Completing command with bio_cmd == %#x\n", bp->bio_cmd); | printf("Completing command with bio_cmd == %#x\n", bp->bio_cmd); | ||||
} | } | ||||
if (!(bp->bio_flags & BIO_ERROR)) | if (!(bp->bio_flags & BIO_ERROR)) | ||||
cam_iosched_io_metric_update(isc, done_ccb->ccb_h.qos.sim_data, | cam_iosched_io_metric_update(isc, | ||||
cam_iosched_sbintime_t(done_ccb->ccb_h.qos.periph_data), | |||||
bp->bio_cmd, bp->bio_bcount); | bp->bio_cmd, bp->bio_bcount); | ||||
#endif | #endif | ||||
return retval; | return retval; | ||||
} | } | ||||
/* | /* | ||||
* Tell the io scheduler that you've pushed a trim down into the sim. | * Tell the io scheduler that you've pushed a trim down into the sim. | ||||
* xxx better place for this? | * xxx better place for this? | ||||
▲ Show 20 Lines • Show All 252 Lines • Show Last 20 Lines |