Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Fix adosfs's locking panic
details: https://anonhg.NetBSD.org/src/rev/bee56248fe22
branches: trunk
changeset: 472282:bee56248fe22
user: is <is%NetBSD.org@localhost>
date: Mon Apr 26 20:33:18 1999 +0000
description:
Fix adosfs's locking panic
diffstat:
sys/kern/vfs_getcwd.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 687a301b0ab2 -r bee56248fe22 sys/kern/vfs_getcwd.c
--- a/sys/kern/vfs_getcwd.c Mon Apr 26 20:27:29 1999 +0000
+++ b/sys/kern/vfs_getcwd.c Mon Apr 26 20:33:18 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_getcwd.c,v 1.4 1999/04/05 03:33:31 sommerfe Exp $ */
+/* $NetBSD: vfs_getcwd.c,v 1.5 1999/04/26 20:33:18 is Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -163,8 +163,14 @@
eofflag = 0;
+ /* XXX un-break adosfs */
+ VOP_UNLOCK(cvp, 0);
+
error = VOP_READDIR(pvp, &uio, p->p_ucred, &eofflag, 0, 0);
+ /* XXX not handling lock failures here.. */
+ (void) vn_lock(cvp, LK_EXCLUSIVE | LK_RETRY);
+
off = uio.uio_offset;
/*
Home |
Main Index |
Thread Index |
Old Index