summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_getcwd.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2009-02-13 18:18:14 +0000
committerjhb <jhb@FreeBSD.org>2009-02-13 18:18:14 +0000
commit26e338d6fc4cd60255a131cdf285a3c2cb66cea4 (patch)
tree059be0daffb9368cf7dc8f5d8a29ff30ea6391fb /sys/compat/linux/linux_getcwd.c
parent482df37a9ec093145af5d2f758f6e565fba7980d (diff)
downloadFreeBSD-src-26e338d6fc4cd60255a131cdf285a3c2cb66cea4.zip
FreeBSD-src-26e338d6fc4cd60255a131cdf285a3c2cb66cea4.tar.gz
Use shared vnode locks when invoking VOP_READDIR().
MFC after: 1 month
Diffstat (limited to 'sys/compat/linux/linux_getcwd.c')
-rw-r--r--sys/compat/linux/linux_getcwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_getcwd.c b/sys/compat/linux/linux_getcwd.c
index 2ab69c5..6474d1e 100644
--- a/sys/compat/linux/linux_getcwd.c
+++ b/sys/compat/linux/linux_getcwd.c
@@ -163,7 +163,7 @@ linux_getcwd_scandir(lvpp, uvpp, bpp, bufp, td)
cn.cn_nameptr = "..";
cn.cn_namelen = 2;
cn.cn_consume = 0;
- cn.cn_lkflags = LK_EXCLUSIVE;
+ cn.cn_lkflags = LK_SHARED;
/*
* At this point, lvp is locked and will be unlocked by the lookup.
OpenPOWER on IntegriCloud