DragonFly BSD
DragonFly commits List (threaded) for 2006-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/kern vfs_cache.c src/sys/sys namecache.h


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 29 Mar 2006 18:39:48 -0800 (PST)

dillon      2006/03/29 18:39:48 PST

DragonFly src repository

  Modified files:
    sys/kern             vfs_cache.c 
    sys/sys              namecache.h 
  Log:
  Fix a race condition between nlookup and vnode reclamation.  Even though the
  cache_lock() refs a vnode to prevent reclamation, it is possible for a vnode
  to already be in the middle of a reclamation as of the time the lock is
  obtained.  Adjust cache_get*() and cache_resolve*() to check for the
  condition and de-resolve the ncp before returning.
  
  Reported-by: joerg@xxxxxxxxxxxxxxxxx
  
  Revision  Changes    Path
  1.62      +100 -13   src/sys/kern/vfs_cache.c
  1.23      +1 -0      src/sys/sys/namecache.h


http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_cache.c.diff?r1=1.61&r2=1.62&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/sys/namecache.h.diff?r1=1.22&r2=1.23&f=u



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