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/68a005ec9d1b
branches: trunk
changeset: 957001:68a005ec9d1b
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 540c0b1404e2 -r 68a005ec9d1b 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