summaryrefslogtreecommitdiffstats
path: root/sys/gnu/ext2fs/ext2_vfsops.c
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2003-11-01 05:51:54 +0000
committerkan <kan@FreeBSD.org>2003-11-01 05:51:54 +0000
commitbc70c0727c709335658c2ab7980d179e736cfc1c (patch)
treefc32ca407dafe0c0f95d6d7b1272204d302f9100 /sys/gnu/ext2fs/ext2_vfsops.c
parent3ba101637bdc0a936597b3fb777dca1cf0e45a5e (diff)
downloadFreeBSD-src-bc70c0727c709335658c2ab7980d179e736cfc1c.zip
FreeBSD-src-bc70c0727c709335658c2ab7980d179e736cfc1c.tar.gz
Temporarily undo parts of the stuct mount locking commit by jeff.
It is unsafe to hold a mutex across vput/vrele calls. This will be redone when a better locking strategy is agreed upon. Discussed with: jeff
Diffstat (limited to 'sys/gnu/ext2fs/ext2_vfsops.c')
-rw-r--r--sys/gnu/ext2fs/ext2_vfsops.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/gnu/ext2fs/ext2_vfsops.c b/sys/gnu/ext2fs/ext2_vfsops.c
index c9544c1..a9c4160 100644
--- a/sys/gnu/ext2fs/ext2_vfsops.c
+++ b/sys/gnu/ext2fs/ext2_vfsops.c
@@ -933,8 +933,7 @@ loop:
}
if ((error = VOP_FSYNC(vp, cred, waitfor, td)) != 0)
allerror = error;
- VOP_UNLOCK(vp, 0, td);
- vrele(vp);
+ vput(vp);
mtx_lock(&mntvnode_mtx);
}
mtx_unlock(&mntvnode_mtx);
OpenPOWER on IntegriCloud