svn commit: r242568 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Andriy Gapon
avg at FreeBSD.org
Sun Nov 4 14:15:14 UTC 2012
Author: avg
Date: Sun Nov 4 14:15:13 2012
New Revision: 242568
URL: http://svn.freebsd.org/changeset/base/242568
Log:
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
Modified:
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c Sun Nov 4 13:50:08 2012 (r242567)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c Sun Nov 4 14:15:13 2012 (r242568)
@@ -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);
}
More information about the svn-src-head
mailing list