From 23b77994f21de20a36a1dbc276d90d8a515b74d7 Mon Sep 17 00:00:00 2001 From: Jeff Roberson Date: Fri, 31 Mar 2006 23:37:29 +0000 Subject: [PATCH] - 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(+) diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c index 2abecfb5c3f1..c1be3bdbffa1 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;