Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/specfs spec_close: we don't need to lock the vnod...
details: https://anonhg.NetBSD.org/src/rev/2d421c3355af
branches: trunk
changeset: 555691:2d421c3355af
user: pk <pk%NetBSD.org@localhost>
date: Tue Nov 25 12:52:10 2003 +0000
description:
spec_close: we don't need to lock the vnode just to make a copy of its flags.
diffstat:
sys/miscfs/specfs/spec_vnops.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r ae792aea67ed -r 2d421c3355af sys/miscfs/specfs/spec_vnops.c
--- a/sys/miscfs/specfs/spec_vnops.c Tue Nov 25 10:05:17 2003 +0000
+++ b/sys/miscfs/specfs/spec_vnops.c Tue Nov 25 12:52:10 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spec_vnops.c,v 1.72 2003/11/24 14:59:38 pk Exp $ */
+/* $NetBSD: spec_vnops.c,v 1.73 2003/11/25 12:52:10 pk Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spec_vnops.c,v 1.72 2003/11/24 14:59:38 pk Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spec_vnops.c,v 1.73 2003/11/25 12:52:10 pk Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -652,9 +652,7 @@
int mode, error, count, flags, flags1;
count = vcount(vp);
- simple_lock(&vp->v_interlock);
flags = vp->v_flag;
- simple_unlock(&vp->v_interlock);
switch (vp->v_type) {
Home |
Main Index |
Thread Index |
Old Index