Remove an impossible condition from unionfs_lock()
We hold the vnode interlock, so vnode private data cannot suddenly become NULL. Tested by: pho Reviewed by: kib, markj Differential Revision: https://reviews.freebsd.org/D39272
This commit is contained in:
parent
a18c403fbd
commit
a5d82b55fe
@ -1982,14 +1982,6 @@ unionfs_lock(struct vop_lock1_args *ap)
|
||||
vholdnz(uvp);
|
||||
uhold = 1;
|
||||
VOP_UNLOCK(uvp);
|
||||
unp = VTOUNIONFS(vp);
|
||||
if (unp == NULL) {
|
||||
/* vnode is released. */
|
||||
VI_UNLOCK(vp);
|
||||
VOP_UNLOCK(lvp);
|
||||
vdrop(uvp);
|
||||
return (EBUSY);
|
||||
}
|
||||
}
|
||||
VI_LOCK_FLAGS(lvp, MTX_DUPOK);
|
||||
flags |= LK_INTERLOCK;
|
||||
|
Loading…
Reference in New Issue
Block a user