summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2012-11-04 14:15:13 +0000
committeravg <avg@FreeBSD.org>2012-11-04 14:15:13 +0000
commit7a24c90d139bce8a41b84dbbb7d46cbe9b617479 (patch)
tree9d0787dd82aad0070854917e51f55d8317776d79 /sys
parentf72dea1eb077aaf0c2555f86adbf52c99f41f314 (diff)
downloadFreeBSD-src-7a24c90d139bce8a41b84dbbb7d46cbe9b617479.zip
FreeBSD-src-7a24c90d139bce8a41b84dbbb7d46cbe9b617479.tar.gz
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
Diffstat (limited to 'sys')
-rw-r--r--sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
index 874b99b..e4a9385 100644
--- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
+++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
@@ -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);
}
OpenPOWER on IntegriCloud