diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2001-05-08 09:09:32 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2001-05-08 09:09:32 +0000 |
commit | d4e6d409ca0492aff26438a88824c3cf2ba2bd89 (patch) | |
tree | 19d9c1d48edde72275fc18fadcaca0d0bd361a92 /sys/dev/md | |
parent | 97d457866211c8d0ad93fd32f60d935229277919 (diff) | |
download | src-d4e6d409ca0492aff26438a88824c3cf2ba2bd89.tar.gz src-d4e6d409ca0492aff26438a88824c3cf2ba2bd89.zip |
Polish error handling code using biofinish()
Notes
Notes:
svn path=/head/; revision=76365
Diffstat (limited to 'sys/dev/md')
-rw-r--r-- | sys/dev/md/md.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index 87576e77093f..edf28909e18a 100644 --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -397,12 +397,7 @@ mdstart_vnode(struct md_s *sc) } VOP_UNLOCK(sc->vnode, 0, curproc); bp->bio_resid = auio.uio_resid; - - if (error) { - bp->bio_error = error; - bp->bio_flags |= BIO_ERROR; - } - biofinish(bp, &sc->stats, 0); + biofinish(bp, &sc->stats, error); } return; } |