summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/vfs_sync.c')
-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);