- 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:
parent
2da6fa9f1f
commit
fbf586bd40
@ -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.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user