summaryrefslogtreecommitdiffstats
path: root/sys/fs/nullfs
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2006-02-07 11:31:32 +0000
committerjeff <jeff@FreeBSD.org>2006-02-07 11:31:32 +0000
commit9ea95f5e38299aec9fc6a56a7bddf383f46cdbe3 (patch)
tree9d40c9cafccbc03a94a0e429691f5eeec38d77fc /sys/fs/nullfs
parent603c4fe5f3a83a92460ea5867bb7a6ac33a46324 (diff)
downloadFreeBSD-src-9ea95f5e38299aec9fc6a56a7bddf383f46cdbe3.zip
FreeBSD-src-9ea95f5e38299aec9fc6a56a7bddf383f46cdbe3.tar.gz
- No need to WANTPARENT when we're just going to vrele it in a deadlock
prone way later. Reported by: kkenn MFC After: 3 days
Diffstat (limited to 'sys/fs/nullfs')
-rw-r--r--sys/fs/nullfs/null_vfsops.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/fs/nullfs/null_vfsops.c b/sys/fs/nullfs/null_vfsops.c
index 28d24e1..348160c 100644
--- a/sys/fs/nullfs/null_vfsops.c
+++ b/sys/fs/nullfs/null_vfsops.c
@@ -112,7 +112,7 @@ nullfs_mount(struct mount *mp, struct thread *td)
/*
* Find lower node
*/
- NDINIT(ndp, LOOKUP, FOLLOW|WANTPARENT|LOCKLEAF,
+ NDINIT(ndp, LOOKUP, FOLLOW|LOCKLEAF,
UIO_SYSSPACE, target, td);
error = namei(ndp);
/*
@@ -130,9 +130,6 @@ nullfs_mount(struct mount *mp, struct thread *td)
*/
lowerrootvp = ndp->ni_vp;
- vrele(ndp->ni_dvp);
- ndp->ni_dvp = NULLVP;
-
/*
* Check multi null mount to avoid `lock against myself' panic.
*/
OpenPOWER on IntegriCloud