Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sys/kern pullup 1.4->1.5 (is): kludge around adosfs panic



details:   https://anonhg.NetBSD.org/src/rev/128c2724fd33
branches:  netbsd-1-4
changeset: 468527:128c2724fd33
user:      perry <perry%NetBSD.org@localhost>
date:      Wed Apr 28 18:43:44 1999 +0000

description:
pullup 1.4->1.5 (is): kludge around adosfs panic

diffstat:

 sys/kern/vfs_getcwd.c |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r a5a3a34f978a -r 128c2724fd33 sys/kern/vfs_getcwd.c
--- a/sys/kern/vfs_getcwd.c     Wed Apr 28 17:50:47 1999 +0000
+++ b/sys/kern/vfs_getcwd.c     Wed Apr 28 18:43:44 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_getcwd.c,v 1.3.2.1 1999/04/05 19:11:42 sommerfe Exp $ */
+/* $NetBSD: vfs_getcwd.c,v 1.3.2.2 1999/04/28 18:43:44 perry 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