DEVFS - Add required vget when disassociating a vnode from a node.
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 8 Aug 2009 00:35:36 +0000 (17:35 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 8 Aug 2009 00:35:36 +0000 (17:35 -0700)
commite23485a5fa4ee8679a681c1dead71f925f14965f
tree77786b7307888071b458bddcfb499f230fefa0cc
parent2848f1b83cc502afa2f7afb8af5d3fb7d60b46e0
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.
sys/vfs/devfs/devfs_core.c
sys/vfs/devfs/devfs_vnops.c