use bufdone() not biodone().
This commit is contained in:
parent
134a515cd2
commit
db95f8ec86
@ -495,9 +495,9 @@ spec_xstrategy(struct vnode *vp, struct buf *bp)
|
||||
}
|
||||
dsw = devsw(bp->b_dev);
|
||||
if (dsw == NULL) {
|
||||
bp->b_io.bio_error = ENXIO;
|
||||
bp->b_io.bio_flags |= BIO_ERROR;
|
||||
biodone(&bp->b_io);
|
||||
bp->b_error = ENXIO;
|
||||
bp->b_ioflags |= BIO_ERROR;
|
||||
bufdone(bp);
|
||||
return (0);
|
||||
}
|
||||
KASSERT(dsw->d_strategy != NULL,
|
||||
|
@ -3436,9 +3436,9 @@ softdep_disk_prewrite(struct vnode *vp, struct buf *bp)
|
||||
vp->v_rdev->si_copyonwrite &&
|
||||
(error = (*vp->v_rdev->si_copyonwrite)(vp, bp)) != 0 &&
|
||||
error != EOPNOTSUPP) {
|
||||
bp->b_io.bio_error = error;
|
||||
bp->b_io.bio_flags |= BIO_ERROR;
|
||||
biodone(&bp->b_io);
|
||||
bp->b_error = error;
|
||||
bp->b_ioflags |= BIO_ERROR;
|
||||
bufdone(bp);
|
||||
return (1);
|
||||
}
|
||||
return (0);
|
||||
|
Loading…
Reference in New Issue
Block a user