diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2001-05-06 20:00:03 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2001-05-06 20:00:03 +0000 |
| commit | a468031ce841abd412daba673e4d29f4731877b9 (patch) | |
| tree | a64ebdb241a0dd62cdc943d74032c6052aec5c9b /sys/dev/md | |
| parent | 18ee6cea78ac0da9e19d19cb67a68f0ff382ed21 (diff) | |
Notes
Diffstat (limited to 'sys/dev/md')
| -rw-r--r-- | sys/dev/md/md.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index 0d882c194c628..87576e77093f1 100644 --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -304,8 +304,7 @@ mdstart_malloc(struct md_s *sc) dst += sc->secsize; } bp->bio_resid = 0; - devstat_end_transaction_bio(&sc->stats, bp); - biodone(bp); + biofinish(bp, &sc->stats, 0); } return; } @@ -338,8 +337,7 @@ mdstart_preload(struct md_s *sc) bcopy(bp->bio_data, sc->pl_ptr + (bp->bio_pblkno << DEV_BSHIFT), bp->bio_bcount); } bp->bio_resid = 0; - devstat_end_transaction_bio(&sc->stats, bp); - biodone(bp); + biofinish(bp, &sc->stats, 0); } return; } @@ -404,8 +402,7 @@ mdstart_vnode(struct md_s *sc) bp->bio_error = error; bp->bio_flags |= BIO_ERROR; } - devstat_end_transaction_bio(&sc->stats, bp); - biodone(bp); + biofinish(bp, &sc->stats, 0); } return; } |
