From 691a2edf956c1ecc41435ffe38b869a3e2fd562b Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Thu, 15 Nov 2001 06:38:49 +0000 Subject: Make sure that stuff on the syncer worklist has VBIOONSYNCLIST set and stuff that isn't on the worklist doesn't have it set. --- sys/kern/vfs_sync.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys') 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); -- cgit v1.2.3