From 158187fcb0ce162ea84dc666c195c65f32ee9b9a Mon Sep 17 00:00:00 2001 From: jeff Date: Fri, 31 Mar 2006 23:37:29 +0000 Subject: - 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. --- sys/fs/devfs/devfs_vnops.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/fs/devfs') diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c index 2abecfb..c1be3bd 100644 --- a/sys/fs/devfs/devfs_vnops.c +++ b/sys/fs/devfs/devfs_vnops.c @@ -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; -- cgit v1.1