Fix an issue with positive namecache timeouts. Locked children often
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 20 Jun 2007 06:23:24 +0000 (06:23 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 20 Jun 2007 06:23:24 +0000 (06:23 +0000)
commitfb441737d8b229c8e302da299f6a9bda5a1bd1fe
tree25080620968632e5284023f50a4782afc62ea50e
parentc7daadb1272f8ab6d736de08f5e052cfef7785fd
Fix an issue with positive namecache timeouts.  Locked children often
depend on the resolved vnode in the parent ncp's remaining intact, but
the positive namecache timeout code broke that rule and caused certain
VFS functions which depend on an intact parent (rename & remove primarily)
to occassionally return EPERM.  Only zap the node if it has no children.

Reported-by: Thomas Nikolajsen <thomas.nikolajsen@mail.dk>
sys/kern/vfs_cache.c