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/fs | |
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/fs')
-rw-r--r-- | sys/fs/coda/coda_vnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/coda/coda_vnops.c b/sys/fs/coda/coda_vnops.c index a913bd6..c5c6cb1 100644 --- a/sys/fs/coda/coda_vnops.c +++ b/sys/fs/coda/coda_vnops.c @@ -1506,7 +1506,7 @@ coda_readdir(struct vop_readdir_args *ap) */ CODADEBUG(CODA_READDIR, myprintf(("indirect readdir: fid = %s, " "refcnt = %d\n", coda_f2s(&cp->c_fid), vp->v_usecount));); - vn_lock(cp->c_ovp, LK_EXCLUSIVE | LK_RETRY); + vn_lock(cp->c_ovp, LK_SHARED | LK_RETRY); error = VOP_READDIR(cp->c_ovp, uiop, cred, eofflag, ncookies, cookies); VOP_UNLOCK(cp->c_ovp, 0); |