Source-Changes-HG archive

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

[src/ad-namecache]: src/sys/kern Back out experimental change - not ready for...



details:   https://anonhg.NetBSD.org/src/rev/a3ec091aba4e
branches:  ad-namecache
changeset: 983022:a3ec091aba4e
user:      ad <ad%NetBSD.org@localhost>
date:      Sat Feb 29 22:00:03 2020 +0000

description:
Back out experimental change - not ready for LK_SHARED on VOP_OPEN() just yet.

diffstat:

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

diffs (30 lines):

diff -r 4cb31fc2ff3d -r a3ec091aba4e sys/kern/vfs_vnops.c
--- a/sys/kern/vfs_vnops.c      Sat Feb 29 21:50:45 2020 +0000
+++ b/sys/kern/vfs_vnops.c      Sat Feb 29 22:00:03 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_vnops.c,v 1.204.2.3 2020/02/29 20:21:03 ad Exp $   */
+/*     $NetBSD: vfs_vnops.c,v 1.204.2.4 2020/02/29 22:00:03 ad Exp $   */
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_vnops.c,v 1.204.2.3 2020/02/29 20:21:03 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_vnops.c,v 1.204.2.4 2020/02/29 22:00:03 ad Exp $");
 
 #include "veriexec.h"
 
@@ -163,10 +163,7 @@
                        ndp->ni_cnd.cn_flags |= FOLLOW;
        } else {
                ndp->ni_cnd.cn_nameiop = LOOKUP;
-               if ((fmode & O_TRUNC) == 0) /* XXXAD check nfs etc */
-                       ndp->ni_cnd.cn_flags |= LOCKLEAF | LOCKSHARED;
-               else
-                       ndp->ni_cnd.cn_flags |= LOCKLEAF;
+               ndp->ni_cnd.cn_flags |= LOCKLEAF;
                if ((fmode & O_NOFOLLOW) == 0)
                        ndp->ni_cnd.cn_flags |= FOLLOW;
        }



Home | Main Index | Thread Index | Old Index