When the vp is lcoked, vget() calls vfs_object_create() with

waslocked = TRUE.  This change may fix lockmgr panic in umapfs/nullfs.

PR:		5634
Reviewed by:	"John S. Dyson" <toor@dyson.iquest.net>
Suggested by:	Bruce Evans <bde@zeta.org.au>
This commit is contained in:
KATO Takenori 1998-02-07 08:44:31 +00:00
parent c32bb532e4
commit 16e3b0b67a
2 changed files with 6 additions and 4 deletions

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
* $Id: vfs_subr.c,v 1.129 1998/02/05 03:32:11 dyson Exp $
* $Id: vfs_subr.c,v 1.130 1998/02/06 12:13:31 eivind Exp $
*/
/*
@ -919,7 +919,8 @@ vget(vp, flags, p)
(vp->v_type == VREG) &&
((vp->v_object == NULL) ||
(vp->v_object->flags & OBJ_DEAD))) {
vfs_object_create(vp, curproc, curproc->p_ucred, 0);
vfs_object_create(vp, curproc, curproc->p_ucred,
VOP_ISLOCKED(vp));
simple_lock(&vp->v_interlock);
}
if (flags & LK_TYPE_MASK) {

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
* $Id: vfs_subr.c,v 1.129 1998/02/05 03:32:11 dyson Exp $
* $Id: vfs_subr.c,v 1.130 1998/02/06 12:13:31 eivind Exp $
*/
/*
@ -919,7 +919,8 @@ vget(vp, flags, p)
(vp->v_type == VREG) &&
((vp->v_object == NULL) ||
(vp->v_object->flags & OBJ_DEAD))) {
vfs_object_create(vp, curproc, curproc->p_ucred, 0);
vfs_object_create(vp, curproc, curproc->p_ucred,
VOP_ISLOCKED(vp));
simple_lock(&vp->v_interlock);
}
if (flags & LK_TYPE_MASK) {