diff options
author | roberto <roberto@FreeBSD.org> | 2000-08-01 14:15:07 +0000 |
---|---|---|
committer | roberto <roberto@FreeBSD.org> | 2000-08-01 14:15:07 +0000 |
commit | 3d4cf3c369d0c223e7ac1dad03f5542e5fbca317 (patch) | |
tree | c2526750644f3f565ad2274087f505c2d9d9288f /sys/ufs | |
parent | 449e2ec6a64038b4888586dd02fd07473cea2135 (diff) | |
download | FreeBSD-src-3d4cf3c369d0c223e7ac1dad03f5542e5fbca317.zip FreeBSD-src-3d4cf3c369d0c223e7ac1dad03f5542e5fbca317.tar.gz |
Fix the lockmgr panic everyone is seeing at shutdown time.
vput assumes curproc is the lock holder, but it's not true in this case.
Thanks a lot Luoqi !
Submitted by: luoqi
Tested by: phk
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ffs/ffs_vfsops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index c40be45..dc04eea 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -952,7 +952,8 @@ loop: } if ((error = VOP_FSYNC(vp, cred, waitfor, p)) != 0) allerror = error; - vput(vp); + VOP_UNLOCK(vp, 0, p); + vrele(vp); simple_lock(&mntvnode_slock); } else { simple_unlock(&mntvnode_slock); |