summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorroberto <roberto@FreeBSD.org>2000-08-01 14:15:07 +0000
committerroberto <roberto@FreeBSD.org>2000-08-01 14:15:07 +0000
commit3d4cf3c369d0c223e7ac1dad03f5542e5fbca317 (patch)
treec2526750644f3f565ad2274087f505c2d9d9288f /sys/ufs
parent449e2ec6a64038b4888586dd02fd07473cea2135 (diff)
downloadFreeBSD-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.c3
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);
OpenPOWER on IntegriCloud