diff options
author | jhb <jhb@FreeBSD.org> | 2009-02-13 18:18:14 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2009-02-13 18:18:14 +0000 |
commit | 26e338d6fc4cd60255a131cdf285a3c2cb66cea4 (patch) | |
tree | 059be0daffb9368cf7dc8f5d8a29ff30ea6391fb /sys/cddl/contrib/opensolaris/uts/common/fs/zfs | |
parent | 482df37a9ec093145af5d2f758f6e565fba7980d (diff) | |
download | FreeBSD-src-26e338d6fc4cd60255a131cdf285a3c2cb66cea4.zip FreeBSD-src-26e338d6fc4cd60255a131cdf285a3c2cb66cea4.tar.gz |
Use shared vnode locks when invoking VOP_READDIR().
MFC after: 1 month
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c index 0a44a83..f213d10 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c @@ -4697,8 +4697,8 @@ vop_listextattr { return (error); } - NDINIT_ATVP(&nd, LOOKUP, NOFOLLOW | LOCKLEAF | MPSAFE, UIO_SYSSPACE, - ".", xvp, td); + NDINIT_ATVP(&nd, LOOKUP, NOFOLLOW | LOCKLEAF | LOCKSHARED | MPSAFE, + UIO_SYSSPACE, ".", xvp, td); error = namei(&nd); vp = nd.ni_vp; NDFREE(&nd, NDF_ONLY_PNBUF); |