summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorart <art@openbsd.org>1998-11-20 01:35:32 +0000
committerart <art@openbsd.org>1998-11-20 01:35:32 +0000
commit10349df48c06ac0a781e123c600c52afc91fb2ef (patch)
tree738cc070e06925d7382650351c4aee73eaf66136
parenttset now uses -lcurses (diff)
downloadwireguard-openbsd-10349df48c06ac0a781e123c600c52afc91fb2ef.tar.xz
wireguard-openbsd-10349df48c06ac0a781e123c600c52afc91fb2ef.zip
vn_lock already unlocks the simple lock. don't do that again
-rw-r--r--sys/kern/vfs_subr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index f639aba92f9..d5cb63c5512 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_subr.c,v 1.24 1998/11/12 04:30:02 csapuntz Exp $ */
+/* $OpenBSD: vfs_subr.c,v 1.25 1998/11/20 01:35:32 art Exp $ */
/* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */
/*
@@ -802,10 +802,8 @@ vrele(vp)
#endif
vputonfreelist(vp);
- if (vn_lock(vp, LK_EXCLUSIVE |LK_INTERLOCK, p) == 0)
+ if (vn_lock(vp, LK_EXCLUSIVE|LK_INTERLOCK, p) == 0)
VOP_INACTIVE(vp, p);
-
- simple_unlock(&vp->v_interlock);
}
#ifdef DIAGNOSTIC