From 26e338d6fc4cd60255a131cdf285a3c2cb66cea4 Mon Sep 17 00:00:00 2001 From: jhb Date: Fri, 13 Feb 2009 18:18:14 +0000 Subject: Use shared vnode locks when invoking VOP_READDIR(). MFC after: 1 month --- sys/compat/linux/linux_getcwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/compat/linux/linux_getcwd.c') 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. -- cgit v1.1