Call devstat_start_transaction_bio() instead of devstat_start_transaction()

This commit is contained in:
Poul-Henning Kamp 2003-03-15 10:50:44 +00:00
parent 81876757ec
commit 1ecc485c1b
8 changed files with 8 additions and 8 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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

View File

@ -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,

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);