zfs_vnode_lock: no need to double-guess caller's intentions here
vn_lock should do the right thing with respect to given vnode lock flags. If a caller doesn't mind a doomed vnode, then zfs should deliver. Reviewed by: kib MFC after: 19 days
This commit is contained in:
parent
d548e8b66f
commit
62eeeb8ff8
@ -1744,15 +1744,7 @@ zfs_vnode_lock(vnode_t *vp, int flags)
|
||||
|
||||
ASSERT(vp != NULL);
|
||||
|
||||
/*
|
||||
* Check if the file system wasn't forcibly unmounted in the meantime.
|
||||
*/
|
||||
error = vn_lock(vp, flags);
|
||||
if (error == 0 && (vp->v_iflag & VI_DOOMED) != 0) {
|
||||
VOP_UNLOCK(vp, 0);
|
||||
error = ENOENT;
|
||||
}
|
||||
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user