- 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
This commit is contained in:
Jeff Roberson 2006-02-07 11:31:32 +00:00
parent 2da6fa9f1f
commit fbf586bd40

View File

@ -112,7 +112,7 @@ nullfs_mount(struct mount *mp, struct thread *td)
/* /*
* Find lower node * Find lower node
*/ */
NDINIT(ndp, LOOKUP, FOLLOW|WANTPARENT|LOCKLEAF, NDINIT(ndp, LOOKUP, FOLLOW|LOCKLEAF,
UIO_SYSSPACE, target, td); UIO_SYSSPACE, target, td);
error = namei(ndp); error = namei(ndp);
/* /*
@ -130,9 +130,6 @@ nullfs_mount(struct mount *mp, struct thread *td)
*/ */
lowerrootvp = ndp->ni_vp; lowerrootvp = ndp->ni_vp;
vrele(ndp->ni_dvp);
ndp->ni_dvp = NULLVP;
/* /*
* Check multi null mount to avoid `lock against myself' panic. * Check multi null mount to avoid `lock against myself' panic.
*/ */