diff --git a/sys/cam/scsi/scsi_cd.c b/sys/cam/scsi/scsi_cd.c index 0472e81a13b0..bbe33ecde8c5 100644 --- a/sys/cam/scsi/scsi_cd.c +++ b/sys/cam/scsi/scsi_cd.c @@ -1507,7 +1507,7 @@ cdstart(struct cam_periph *periph, union ccb *start_ccb) } else { bioq_remove(&softc->bio_queue, bp); - devstat_start_transaction(softc->device_stats); + devstat_start_transaction_bio(softc->device_stats, bp); scsi_read_write(&start_ccb->csio, /*retries*/4, diff --git a/sys/cam/scsi/scsi_pt.c b/sys/cam/scsi/scsi_pt.c index c02a4261a884..280093ad703e 100644 --- a/sys/cam/scsi/scsi_pt.c +++ b/sys/cam/scsi/scsi_pt.c @@ -502,7 +502,7 @@ ptstart(struct cam_periph *periph, union ccb *start_ccb) bioq_remove(&softc->bio_queue, bp); - devstat_start_transaction(softc->device_stats); + devstat_start_transaction_bio(softc->device_stats, bp); scsi_send_receive(&start_ccb->csio, /*retries*/4, diff --git a/sys/cam/scsi/scsi_sa.c b/sys/cam/scsi/scsi_sa.c index 3a8a03ac9568..acf5acfb8859 100644 --- a/sys/cam/scsi/scsi_sa.c +++ b/sys/cam/scsi/scsi_sa.c @@ -1620,7 +1620,7 @@ sastart(struct cam_periph *periph, union ccb *start_ccb) CAM_DEBUG(start_ccb->ccb_h.path, CAM_DEBUG_INFO, ("Variable Record Count is %d\n", length)); } - devstat_start_transaction(softc->device_stats); + devstat_start_transaction_bio(softc->device_stats, bp); /* * Some people have theorized that we should * suppress illegal length indication if we are diff --git a/sys/dev/ata/atapi-tape.c b/sys/dev/ata/atapi-tape.c index 5aecc16a64b5..891dbe45fe3f 100644 --- a/sys/dev/ata/atapi-tape.c +++ b/sys/dev/ata/atapi-tape.c @@ -477,7 +477,7 @@ ast_start(struct ata_device *atadev) ccb[3] = blkcount>>8; ccb[4] = blkcount; - devstat_start_transaction(stp->stats); + devstat_start_transaction_bio(stp->stats, bp); atapi_queue_cmd(stp->device, ccb, bp->bio_data, blkcount * stp->blksize, (bp->bio_cmd == BIO_READ) ? ATPR_F_READ : 0, diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c index dd0609a12290..16c17789dcf4 100644 --- a/sys/dev/fdc/fdc.c +++ b/sys/dev/fdc/fdc.c @@ -1724,7 +1724,7 @@ fdstrategy(struct bio *bp) s = splbio(); bioqdisksort(&fdc->head, bp); untimeout(fd_turnoff, fd, fd->toffhandle); /* a good idea */ - devstat_start_transaction(fd->device_stats); + devstat_start_transaction_bio(fd->device_stats, bp); device_busy(fd->dev); fdstart(fdc); splx(s); diff --git a/sys/isa/fd.c b/sys/isa/fd.c index dd0609a12290..16c17789dcf4 100644 --- a/sys/isa/fd.c +++ b/sys/isa/fd.c @@ -1724,7 +1724,7 @@ fdstrategy(struct bio *bp) s = splbio(); bioqdisksort(&fdc->head, bp); untimeout(fd_turnoff, fd, fd->toffhandle); /* a good idea */ - devstat_start_transaction(fd->device_stats); + devstat_start_transaction_bio(fd->device_stats, bp); device_busy(fd->dev); fdstart(fdc); splx(s); diff --git a/sys/pc98/cbus/fdc.c b/sys/pc98/cbus/fdc.c index 8cabd0af150d..01e27befdf8f 100644 --- a/sys/pc98/cbus/fdc.c +++ b/sys/pc98/cbus/fdc.c @@ -2153,7 +2153,7 @@ fdstrategy(struct bio *bp) s = splbio(); bioqdisksort(&fdc->head, bp); untimeout(fd_turnoff, fd, fd->toffhandle); /* a good idea */ - devstat_start_transaction(fd->device_stats); + devstat_start_transaction_bio(fd->device_stats, bp); device_busy(fd->dev); fdstart(fdc); splx(s); diff --git a/sys/pc98/pc98/fd.c b/sys/pc98/pc98/fd.c index 8cabd0af150d..01e27befdf8f 100644 --- a/sys/pc98/pc98/fd.c +++ b/sys/pc98/pc98/fd.c @@ -2153,7 +2153,7 @@ fdstrategy(struct bio *bp) s = splbio(); bioqdisksort(&fdc->head, bp); untimeout(fd_turnoff, fd, fd->toffhandle); /* a good idea */ - devstat_start_transaction(fd->device_stats); + devstat_start_transaction_bio(fd->device_stats, bp); device_busy(fd->dev); fdstart(fdc); splx(s);