summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-11-15 06:38:49 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-11-15 06:38:49 +0000
commit691a2edf956c1ecc41435ffe38b869a3e2fd562b (patch)
treeb48f25ff38382570a013d2fca2e99dca8314e182 /sys/kern
parentce070c7054f4f778763aa8d668f1f92ae896ed05 (diff)
Make sure that stuff on the syncer worklist has VBIOONSYNCLIST set
and stuff that isn't on the worklist doesn't have it set.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_sync.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/vfs_sync.c b/sys/kern/vfs_sync.c
index 3b8c9274f39..4b07d0f373a 100644
--- a/sys/kern/vfs_sync.c
+++ b/sys/kern/vfs_sync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_sync.c,v 1.19 2001/06/22 14:14:11 deraadt Exp $ */
+/* $OpenBSD: vfs_sync.c,v 1.20 2001/11/15 06:38:48 art Exp $ */
/*
* Portions of this code are:
@@ -130,8 +130,8 @@ vn_syncer_add_to_worklist(vp, delay)
if (vp->v_bioflag & VBIOONSYNCLIST)
LIST_REMOVE(vp, v_synclist);
- LIST_INSERT_HEAD(&syncer_workitem_pending[slot], vp, v_synclist);
vp->v_bioflag |= VBIOONSYNCLIST;
+ LIST_INSERT_HEAD(&syncer_workitem_pending[slot], vp, v_synclist);
splx(s);
}
@@ -387,6 +387,7 @@ sync_inactive(v)
}
vp->v_mount->mnt_syncer = NULL;
LIST_REMOVE(vp, v_synclist);
+ vp->v_bioflag &= ~VBIOONSYNCLIST;
vp->v_writecount = 0;
vput(vp);
return (0);