Source-Changes-HG archive

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

[src/trunk]: src/sys/coda Respect "lktype" in all paths in coda_root().



details:   https://anonhg.NetBSD.org/src/rev/1a2c442c78ef
branches:  trunk
changeset: 946016:1a2c442c78ef
user:      hannken <hannken%NetBSD.org@localhost>
date:      Sat Nov 14 11:41:29 2020 +0000

description:
Respect "lktype" in all paths in coda_root().

diffstat:

 sys/coda/coda_vfsops.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 857ded2b1488 -r 1a2c442c78ef sys/coda/coda_vfsops.c
--- a/sys/coda/coda_vfsops.c    Sat Nov 14 11:22:17 2020 +0000
+++ b/sys/coda/coda_vfsops.c    Sat Nov 14 11:41:29 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: coda_vfsops.c,v 1.87 2020/01/17 20:08:06 ad Exp $      */
+/*     $NetBSD: coda_vfsops.c,v 1.88 2020/11/14 11:41:29 hannken Exp $ */
 
 /*
  *
@@ -45,7 +45,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: coda_vfsops.c,v 1.87 2020/01/17 20:08:06 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: coda_vfsops.c,v 1.88 2020/11/14 11:41:29 hannken Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -388,7 +388,7 @@
 
        *vpp = mi->mi_rootvp;
        vref(*vpp);
-       vn_lock(*vpp, LK_EXCLUSIVE);
+       vn_lock(*vpp, lktype);
        MARK_INT_SAT(CODA_ROOT_STATS);
        goto exit;
     } else if (error == ENODEV || error == EINTR) {
@@ -403,7 +403,7 @@
         */
        *vpp = mi->mi_rootvp;
        vref(*vpp);
-       vn_lock(*vpp, LK_EXCLUSIVE);
+       vn_lock(*vpp, lktype);
        MARK_INT_FAIL(CODA_ROOT_STATS);
        error = 0;
        goto exit;



Home | Main Index | Thread Index | Old Index