summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_default.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/kern/vfs_default.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/kern/vfs_default.c')
-rw-r--r--sys/kern/vfs_default.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/kern/vfs_default.c b/sys/kern/vfs_default.c
index e89654f..4e248c1 100644
--- a/sys/kern/vfs_default.c
+++ b/sys/kern/vfs_default.c
@@ -908,12 +908,8 @@ loop:
if (error)
allerror = error;
- mtx_lock(&mntvnode_mtx);
- if (nvp != TAILQ_NEXT(vp, v_nmntvnodes)) {
- vput(vp);
- goto loop;
- }
vput(vp);
+ mtx_lock(&mntvnode_mtx);
}
mtx_unlock(&mntvnode_mtx);
return (allerror);
OpenPOWER on IntegriCloud