summaryrefslogtreecommitdiffstats
path: root/sys/nfsserver
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/nfsserver
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/nfsserver')
-rw-r--r--sys/nfsserver/nfs_serv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfsserver/nfs_serv.c b/sys/nfsserver/nfs_serv.c
index ab09421..5c52da6 100644
--- a/sys/nfsserver/nfs_serv.c
+++ b/sys/nfsserver/nfs_serv.c
@@ -3251,7 +3251,7 @@ again:
io.uio_rw = UIO_READ;
io.uio_td = NULL;
eofflag = 0;
- vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
+ vn_lock(vp, LK_SHARED | LK_RETRY);
if (cookies) {
free((caddr_t)cookies, M_TEMP);
cookies = NULL;
@@ -3533,7 +3533,7 @@ again:
io.uio_rw = UIO_READ;
io.uio_td = NULL;
eofflag = 0;
- vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
+ vn_lock(vp, LK_SHARED | LK_RETRY);
if (cookies) {
free((caddr_t)cookies, M_TEMP);
cookies = NULL;
OpenPOWER on IntegriCloud