git: DragonFly_RELEASE_3_2 kernel - Fix filesystem lookup error due to parent directory recyclement race

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Dec 13 19:17:32 PST 2012


commit bfbb2132a079ca54cc1fa53d20df0cc3fba3be3d
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Dec 7 14:44:26 2012 -0800

    kernel - Fix filesystem lookup error due to parent directory recyclement race
    
    * When looking up a path the parent ncp's vnode is needed to pass into
      the VFS code as the directory vnode (dvp) for the element being looked up.
    
    * Fix a timing race whereby a system under extreme vnode pressure (such as
      when kern.maxvnodes is set to a very low value) can squeek in recyclement
      of this directory vnode when there are no children under it in the
      namecache.
    
      We fix the problem by holding the directory vnode during the nlookup() and
      cache_resolve().

Summary of changes:
 sys/kern/vfs_nlookup.c |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bfbb2132a079ca54cc1fa53d20df0cc3fba3be3d


-- 
DragonFly BSD source repository



More information about the Commits mailing list