diff options
author | kan <kan@FreeBSD.org> | 2003-11-01 05:51:54 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2003-11-01 05:51:54 +0000 |
commit | bc70c0727c709335658c2ab7980d179e736cfc1c (patch) | |
tree | fc32ca407dafe0c0f95d6d7b1272204d302f9100 /sys/kern/vfs_default.c | |
parent | 3ba101637bdc0a936597b3fb777dca1cf0e45a5e (diff) | |
download | FreeBSD-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.c | 6 |
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); |