Source-Changes-HG archive

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

[src/netbsd-2-0]: src/sys/kern Pull up revision 1.57 (requested by wrstuden i...



details:   https://anonhg.NetBSD.org/src/rev/67ec2e36dbbb
branches:  netbsd-2-0
changeset: 564701:67ec2e36dbbb
user:      tron <tron%NetBSD.org@localhost>
date:      Wed Mar 16 12:59:03 2005 +0000

description:
Pull up revision 1.57 (requested by wrstuden in ticket #1298):
Adjust error case handling. If the VOP_LOOKUP() call unlocked the
parent directory node, remember that.
Addresses locking/lookup issues seen in:
http://mail-index.NetBSD.org/tech-kern/2004/06/20/0019.html
http://mail-index.netbsd.org/tech-kern/2005/01/08/0000.html

diffstat:

 sys/kern/vfs_lookup.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r b2f8ee752f31 -r 67ec2e36dbbb sys/kern/vfs_lookup.c
--- a/sys/kern/vfs_lookup.c     Wed Mar 16 12:55:24 2005 +0000
+++ b/sys/kern/vfs_lookup.c     Wed Mar 16 12:59:03 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_lookup.c,v 1.54 2003/12/08 14:23:33 hannken Exp $  */
+/*     $NetBSD: vfs_lookup.c,v 1.54.2.1 2005/03/16 12:59:03 tron Exp $ */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.54 2003/12/08 14:23:33 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.54.2.1 2005/03/16 12:59:03 tron Exp $");
 
 #include "opt_ktrace.h"
 #include "opt_systrace.h"
@@ -528,6 +528,9 @@
                        goto unionlookup;
                }
 
+               if (cnp->cn_flags & PDIRUNLOCK)
+                       dpunlocked = 1;
+
                if (error != EJUSTRETURN)
                        goto bad;
                /*



Home | Main Index | Thread Index | Old Index