diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 1998-11-20 01:35:33 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 1998-11-20 01:35:33 +0000 |
commit | e3e5bcddfaffbf4fde6cc2dc63df06dd60feecf8 (patch) | |
tree | 5906fc2467ff4c0e828312160cfdee43159febc3 | |
parent | 7248823f36887c836dce6f7dc52a39c4d590748e (diff) |
vn_lock already unlocks the simple lock. don't do that again
-rw-r--r-- | sys/kern/vfs_subr.c | 6 |
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 |