summaryrefslogtreecommitdiffstats
path: root/sys/dev/ida/ida_disk.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ida/ida_disk.c')
-rw-r--r--sys/dev/ida/ida_disk.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/ida/ida_disk.c b/sys/dev/ida/ida_disk.c
index 2874d25..6ec65cb 100644
--- a/sys/dev/ida/ida_disk.c
+++ b/sys/dev/ida/ida_disk.c
@@ -254,10 +254,8 @@ id_intr(struct buf *bp)
else
bp->b_resid = 0;
+ devstat_end_transaction_buf(&drv->stats, bp);
biodone(bp);
- devstat_end_transaction(&drv->stats,
- bp->b_bcount - bp->b_resid, DEVSTAT_TAG_NONE,
- (bp->b_flags & B_READ) ? DEVSTAT_READ : DEVSTAT_WRITE);
}
static void
OpenPOWER on IntegriCloud