diff options
author | 2008-07-23 16:24:42 +0000 | |
---|---|---|
committer | 2008-07-23 16:24:42 +0000 | |
commit | c77a6aac71fe7811e361a79ab6dc41841b9f5c43 (patch) | |
tree | c7640aeabb4d2d639a225dc03aba5e96cd191e51 /sys/dev/vnd.c | |
parent | Prevent warning about insecure hostnames where no /etc/hostname.* (diff) | |
download | wireguard-openbsd-c77a6aac71fe7811e361a79ab6dc41841b9f5c43.tar.xz wireguard-openbsd-c77a6aac71fe7811e361a79ab6dc41841b9f5c43.zip |
Correct cases of mishandling of pending reads and writes to prevent
them going negative - this consists of identifying a number of cases of
IO not going through the buffer cache and marking those buffers with
B_RAW - as well as fixing nfs_bio to show pending writes and reads through
the buffer cache via NFS
still has a problem with mishandling the counters I believe in the
async/sync fallback case where counters stay positive which will be
addressed seperately.
ok tedu@ deraadt@
Diffstat (limited to 'sys/dev/vnd.c')
-rw-r--r-- | sys/dev/vnd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c index 85be177912d..602f56f2006 100644 --- a/sys/dev/vnd.c +++ b/sys/dev/vnd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vnd.c,v 1.87 2008/07/20 01:53:43 krw Exp $ */ +/* $OpenBSD: vnd.c,v 1.88 2008/07/23 16:24:43 beck Exp $ */ /* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */ /* @@ -652,6 +652,8 @@ vndiodone(struct buf *bp) vbp->vb_buf.b_error); pbp->b_flags |= B_ERROR; + /* XXX does this matter here? */ + (&vbp->vb_buf)->b_flags |= B_RAW; pbp->b_error = biowait(&vbp->vb_buf); } pbp->b_resid -= vbp->vb_buf.b_bcount; |