summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_sync.c
diff options
context:
space:
mode:
authorConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>2001-02-24 19:07:13 +0000
committerConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>2001-02-24 19:07:13 +0000
commitf80e08ef9a03c50fb30f2cda865b8b444c213bd5 (patch)
tree13504f32b391b348639ebfda7a10a993ed609f6b /sys/kern/vfs_sync.c
parent1cca8b0da3d704e563e451a70cdec4da6d42904b (diff)
Cleanup of vnode interface continues. Get rid of VHOLD/HOLDRELE.
Change VM/UVM to use buf_replacevnode to change the vnode associated with a buffer. Addition v_bioflag for flags written in interrupt handlers (and read at splbio, though not strictly necessary) Add vwaitforio and use it instead of a while loop of v_numoutput. Fix race conditions when manipulation vnode free list
Diffstat (limited to 'sys/kern/vfs_sync.c')
-rw-r--r--sys/kern/vfs_sync.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_sync.c b/sys/kern/vfs_sync.c
index 1e546662bdf..723a3035559 100644
--- a/sys/kern/vfs_sync.c
+++ b/sys/kern/vfs_sync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_sync.c,v 1.14 2001/02/23 16:05:53 csapuntz Exp $ */
+/* $OpenBSD: vfs_sync.c,v 1.15 2001/02/24 19:07:09 csapuntz Exp $ */
/*
* Portions of this code are:
@@ -126,7 +126,7 @@ vn_syncer_add_to_worklist(vp, delay)
s = splbio();
- if (vp->v_flag & VONSYNCLIST)
+ if (vp->v_bioflag & VBIOONSYNCLIST)
LIST_REMOVE(vp, v_synclist);
if (delay > syncer_maxdelay - 2)
@@ -134,7 +134,7 @@ vn_syncer_add_to_worklist(vp, delay)
slot = (syncer_delayno + delay) & syncer_mask;
LIST_INSERT_HEAD(&syncer_workitem_pending[slot], vp, v_synclist);
- vp->v_flag |= VONSYNCLIST;
+ vp->v_bioflag |= VBIOONSYNCLIST;
splx(s);
}