cvs commit: src/sys/kern vfs_cache.c

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Mar 14 20:10:47 PST 2006


dillon      2006/03/14 20:04:55 PST

DragonFly src repository

  Modified files:
    sys/kern             vfs_cache.c 
  Log:
  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


http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_cache.c.diff?r1=1.59&r2=1.60&f=u





More information about the Commits mailing list