DEVFS - Add required vget when disassociating a vnode from a node.
Matthew Dillon
dillon at crater.dragonflybsd.org
Fri Aug 7 17:38:38 PDT 2009
commit e23485a5fa4ee8679a681c1dead71f925f14965f
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Fri Aug 7 17:35:36 2009 -0700
DEVFS - Add required vget when disassociating a vnode from a node.
* We have to protect the vnode when disconnecting the rdev and
disassociating it from the devfs_node.
* This also has the side effect of properly cycling the vnode refs
so the namecache gets cleaned up when a node is removed. Otherwise
the namecache entry will be left intact, resolved to the now dead
vnode.
Summary of changes:
sys/vfs/devfs/devfs_core.c | 9 ++++++++-
sys/vfs/devfs/devfs_vnops.c | 1 +
2 files changed, 9 insertions(+), 1 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e23485a5fa4ee8679a681c1dead71f925f14965f
--
DragonFly BSD source repository
More information about the Commits
mailing list