Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern sys_fchdir: use LK_SHARED.



details:   https://anonhg.NetBSD.org/src/rev/affca55dc7c4
branches:  trunk
changeset: 968002:affca55dc7c4
user:      ad <ad%NetBSD.org@localhost>
date:      Tue Dec 31 11:49:08 2019 +0000

description:
sys_fchdir: use LK_SHARED.

diffstat:

 sys/kern/vfs_syscalls.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5caf5e81d3b7 -r affca55dc7c4 sys/kern/vfs_syscalls.c
--- a/sys/kern/vfs_syscalls.c   Tue Dec 31 11:42:46 2019 +0000
+++ b/sys/kern/vfs_syscalls.c   Tue Dec 31 11:49:08 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_syscalls.c,v 1.538 2019/12/22 19:47:34 ad Exp $    */
+/*     $NetBSD: vfs_syscalls.c,v 1.539 2019/12/31 11:49:08 ad Exp $    */
 
 /*-
  * Copyright (c) 2008, 2009, 2019 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.538 2019/12/22 19:47:34 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.539 2019/12/31 11:49:08 ad Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_fileassoc.h"
@@ -1344,7 +1344,7 @@
        vp = fp->f_vnode;
 
        vref(vp);
-       vn_lock(vp,  LK_EXCLUSIVE | LK_RETRY);
+       vn_lock(vp, LK_SHARED | LK_RETRY);
        if (vp->v_type != VDIR)
                error = ENOTDIR;
        else



Home | Main Index | Thread Index | Old Index