Subject: PR/35279 CVS commit: src/sys/kern
To: None <chs@NetBSD.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: Chuck Silvers <chs@netbsd.org>
List: netbsd-bugs
Date: 12/27/2006 23:25:02
The following reply was made to PR kern/35279; it has been noted by GNATS.
From: Chuck Silvers <chs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/35279 CVS commit: src/sys/kern
Date: Wed, 27 Dec 2006 23:21:02 +0000 (UTC)
Module Name: src
Committed By: chs
Date: Wed Dec 27 23:21:02 UTC 2006
Modified Files:
src/sys/kern: vfs_lookup.c
Log Message:
fix two more problems in the recent changes to lookup():
- don't hold the parent directory vnode locked while traversing mount points.
the fs that's mounted might be an NFS served by a userland process
like the automounter, which might need to traverse the parent directory
in order to complete the lookup.
- in the ENAMETOOLONG case fixed in rev. 1.75, set ni_dvp to dp
since we've logically moved on to using "dp" as the parent.
the caller will then handle vput()ing it as normal.
this fixes PR 35279.
To generate a diff of this commit:
cvs rdiff -r1.76 -r1.77 src/sys/kern/vfs_lookup.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.