diff options
| author | 2007-03-21 17:29:31 +0000 | |
|---|---|---|
| committer | 2007-03-21 17:29:31 +0000 | |
| commit | a5cd29927d8c1f08d7b42a9efbc35b909259e567 (patch) | |
| tree | c25751e220089f781990ac7ae09e931dd75c6741 /sys/kern/vfs_default.c | |
| parent | tweak a sentence; (diff) | |
| download | wireguard-openbsd-a5cd29927d8c1f08d7b42a9efbc35b909259e567.tar.xz wireguard-openbsd-a5cd29927d8c1f08d7b42a9efbc35b909259e567.zip | |
Remove the v_interlock simplelock from the vnode structure.
Zap all calls to simple_lock/unlock() on it (those calls are
#defined away though). Remove the LK_INTERLOCK from the calls
to vn_lock() and cleanup the filesystems wich implement VOP_LOCK().
(by remvoing the v_interlock from there calls to lockmgr()).
ok pedro@, art@, tedu@
Diffstat (limited to 'sys/kern/vfs_default.c')
| -rw-r--r-- | sys/kern/vfs_default.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/sys/kern/vfs_default.c b/sys/kern/vfs_default.c index da7b13db6a9..cdd2a7daefb 100644 --- a/sys/kern/vfs_default.c +++ b/sys/kern/vfs_default.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_default.c,v 1.31 2007/01/16 17:52:18 thib Exp $ */ +/* $OpenBSD: vfs_default.c,v 1.32 2007/03/21 17:29:31 thib Exp $ */ /* * Portions of this code are: @@ -73,7 +73,6 @@ vop_generic_revoke(void *v) #endif vp = ap->a_vp; - simple_lock(&vp->v_interlock); if (vp->v_flag & VALIASED) { /* @@ -82,7 +81,6 @@ vop_generic_revoke(void *v) */ if (vp->v_flag & VXLOCK) { vp->v_flag |= VXWANT; - simple_unlock(&vp->v_interlock); tsleep(vp, PINOD, "vop_generic_revokeall", 0); return(0); @@ -93,7 +91,6 @@ vop_generic_revoke(void *v) * are eliminating its aliases. */ vp->v_flag |= VXLOCK; - simple_unlock(&vp->v_interlock); while (vp->v_flag & VALIASED) { simple_lock(&spechash_slock); for (vq = *vp->v_hashchain; vq; vq = vq->v_specnext) { @@ -112,7 +109,6 @@ vop_generic_revoke(void *v) * really eliminate the vnode after which time * vgone will awaken any sleepers. */ - simple_lock(&vp->v_interlock); vp->v_flag &= ~VXLOCK; } @@ -154,20 +150,6 @@ vop_generic_abortop(void *v) int vop_generic_lock(void *v) { - struct vop_lock_args /* { - struct vnodeop_desc *a_desc; - struct vnode *a_vp; - int a_flags; - struct proc *a_p; - } */ *ap = v; - - /* - * Since we are not using the lock manager, we must clear - * the interlock here. - */ - if (ap->a_flags & LK_INTERLOCK) - simple_unlock(&ap->a_vp->v_interlock); - return (0); } |
