aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJohn Dyson <dyson@FreeBSD.org>1996-09-10 05:28:23 +0000
committerJohn Dyson <dyson@FreeBSD.org>1996-09-10 05:28:23 +0000
commit9fea9a6f5beaf626f7c2631cd723340f3144fc6d (patch)
tree9e17239e3819d53ff5cd7ede1aecaceb11722f28 /sys
parent1e76740a30ed27d3fac63afd596748136eaa3acb (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/vm/vnode_pager.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/sys/vm/vnode_pager.c b/sys/vm/vnode_pager.c
index e2c33f932740..6f31dd3dfb15 100644
--- a/sys/vm/vnode_pager.c
+++ b/sys/vm/vnode_pager.c
@@ -38,7 +38,7 @@
* SUCH DAMAGE.
*
* from: @(#)vnode_pager.c 7.5 (Berkeley) 4/20/91
- * $Id: vnode_pager.c,v 1.62 1996/07/30 03:08:21 dyson Exp $
+ * $Id: vnode_pager.c,v 1.63 1996/08/21 21:56:23 dyson Exp $
*/
/*
@@ -375,9 +375,16 @@ vnode_pager_uncache(vp)
return;
vm_object_reference(object);
- VOP_UNLOCK(vp);
+
+ /*
+ * XXX We really should handle locking on
+ * VBLK devices...
+ */
+ if (vp->v_type != VBLK)
+ VOP_UNLOCK(vp);
pager_cache(object, FALSE);
- VOP_LOCK(vp);
+ if (vp->v_type != VBLK)
+ VOP_LOCK(vp);
return;
}