summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/atapi-cd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386/isa/atapi-cd.c')
-rw-r--r--sys/i386/isa/atapi-cd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/i386/isa/atapi-cd.c b/sys/i386/isa/atapi-cd.c
index 678603f..e4b9ddc 100644
--- a/sys/i386/isa/atapi-cd.c
+++ b/sys/i386/isa/atapi-cd.c
@@ -546,9 +546,6 @@ static void
acd_done(struct acd *cdp, struct buf *bp, int resid, struct atapires result)
{
- devstat_end_transaction(cdp->device_stats, bp->b_bcount - resid,
- DEVSTAT_TAG_NONE,
- (bp->b_flags&B_READ) ? DEVSTAT_READ:DEVSTAT_WRITE);
if (result.code) {
atapi_error(cdp->ata, cdp->unit, result);
bp->b_error = EIO;
@@ -558,6 +555,7 @@ acd_done(struct acd *cdp, struct buf *bp, int resid, struct atapires result)
if ((bp->b_flags & B_READ) == B_WRITE)
cdp->flags |= F_WRITTEN;
}
+ devstat_end_transaction_buf(cdp->device_stats, bp);
biodone(bp);
acd_start(cdp);
}
OpenPOWER on IntegriCloud