DragonFly commits List (threaded) for 2006-03
cvs commit: src/sys/kern vfs_cache.c
dillon 2006/03/14 20:04:55 PST
DragonFly src repository
cache_fromdvp() uses a recursive algorithm to resolve disconnected
directories in the namecache. A recursion must occur until the parent
directory is found to have a namecache record. This is used only by
the NFS server.
Fix a kernel stack underflow when large directory depths are encountered
by reverting to a much less efficient (but non recursive) algorithm. This
case is hit only very rarely, mainly when filesystem testing programs are
employed. It typically takes directories several hundred or several
thousand deep (depending on system memory) to trigger the condition.
Reported-by: Stefan Krueger
Revision Changes Path
1.60 +90 -6 src/sys/kern/vfs_cache.c