Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/thorpej-devvp]: src/sys/dev Use vget, not vref, when acquiring an alread...
details: https://anonhg.NetBSD.org/src/rev/990de3f03a4c
branches: thorpej-devvp
changeset: 514613:990de3f03a4c
user: fvdl <fvdl%NetBSD.org@localhost>
date: Thu Sep 20 11:15:42 2001 +0000
description:
Use vget, not vref, when acquiring an already existing console device vnode.
diffstat:
sys/dev/cons.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (23 lines):
diff -r 49069f7ccc6c -r 990de3f03a4c sys/dev/cons.c
--- a/sys/dev/cons.c Thu Sep 20 11:15:04 2001 +0000
+++ b/sys/dev/cons.c Thu Sep 20 11:15:42 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cons.c,v 1.40.4.2 2001/09/18 19:13:49 fvdl Exp $ */
+/* $NetBSD: cons.c,v 1.40.4.3 2001/09/20 11:15:42 fvdl Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -102,11 +102,11 @@
error = cdevvp(cndev, &vp);
if (error != 0)
return error;
+ vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
} else
- vref(vp);
+ vget(vp, LK_EXCLUSIVE | LK_RETRY);
devvp->v_devcookie = vp;
- vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
error = VOP_OPEN(vp, mode, p->p_ucred, p, NULL);
VOP_UNLOCK(vp, 0);
if (error != 0)
Home |
Main Index |
Thread Index |
Old Index