diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 1999-12-05 06:29:31 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 1999-12-05 06:29:31 +0000 |
commit | 40158ddc3b4d517e01a460fa110820202126dc59 (patch) | |
tree | 20474e24c42f77cb179c0994dd88c91d0c89a91a /sys/kern | |
parent | ee5f1ad372e75a1b8271111c88e57ce66b3e66d9 (diff) |
Unlock the vnode in inactive even when v_usecount == 0.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_sync.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/vfs_sync.c b/sys/kern/vfs_sync.c index c689ddb770b..cb3de524a81 100644 --- a/sys/kern/vfs_sync.c +++ b/sys/kern/vfs_sync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_sync.c,v 1.7 1999/12/05 06:12:38 art Exp $ */ +/* $OpenBSD: vfs_sync.c,v 1.8 1999/12/05 06:29:30 art Exp $ */ /* @@ -338,8 +338,10 @@ sync_inactive(v) struct vnode *vp = ap->a_vp; - if (vp->v_usecount == 0) + if (vp->v_usecount == 0) { + VOP_UNLOCK(vp, 0, ap->a_p); return (0); + } vp->v_mount->mnt_syncer = NULL; LIST_REMOVE(vp, v_synclist); vp->v_writecount = 0; |