1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

The whole issue of not support VOP_LOCK for VBLK devices should be

rethought.  This fixes YET another problem with unmounting filesystems.
The root cause is not fixed here, but at least the problem has gone
away.
This commit is contained in:
John Dyson 1996-09-10 05:28:23 +00:00
parent 1e76740a30
commit 9fea9a6f5b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18205

View File

@ -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;
}