- Add a bogus vhold/vdrop around vgone() in devfs_revoke. Without this

the vnode is never recycled.  It is bogus because the reference really
   should be associated with the devfs dirent.
This commit is contained in:
Jeff Roberson 2006-03-31 23:37:29 +00:00
parent b643101293
commit 23b77994f2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=157342

View File

@ -947,7 +947,10 @@ devfs_revoke(struct vop_revoke_args *ap)
}
dev_unlock();
if (vp2 != NULL) {
/* XXX */
vhold(vp2);
vgone(vp2);
vdrop(vp2);
continue;
}
break;