diff options
author | sef <sef@FreeBSD.org> | 1997-12-12 03:33:43 +0000 |
---|---|---|
committer | sef <sef@FreeBSD.org> | 1997-12-12 03:33:43 +0000 |
commit | 9fd84ad6938a14ba3d55c68ac7e2f33f284f4b6a (patch) | |
tree | 6e03caaa5ca62fe342bb1f7802e130476b1f35eb /sys/fs/procfs/procfs_vnops.c | |
parent | 52b8e9813edc79062fd4253339febac539c7bfba (diff) | |
download | FreeBSD-src-9fd84ad6938a14ba3d55c68ac7e2f33f284f4b6a.zip FreeBSD-src-9fd84ad6938a14ba3d55c68ac7e2f33f284f4b6a.tar.gz |
Fix a problem with procfs_exit() that resulted in missing some procfs
nodes; this also apparantly caused a panic in some circumstances.
Also, since procfs_exit() is getting rid of the nodes when a process
exits, don't bother checking for the process' existance in procfs_inactive().
Diffstat (limited to 'sys/fs/procfs/procfs_vnops.c')
-rw-r--r-- | sys/fs/procfs/procfs_vnops.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sys/fs/procfs/procfs_vnops.c b/sys/fs/procfs/procfs_vnops.c index f0c1bfb..f660f3a 100644 --- a/sys/fs/procfs/procfs_vnops.c +++ b/sys/fs/procfs/procfs_vnops.c @@ -36,7 +36,7 @@ * * @(#)procfs_vnops.c 8.18 (Berkeley) 5/21/95 * - * $Id: procfs_vnops.c,v 1.45 1997/12/07 04:01:03 sef Exp $ + * $Id: procfs_vnops.c,v 1.46 1997/12/08 22:09:24 sef Exp $ */ /* @@ -324,13 +324,6 @@ procfs_bmap(ap) * list, so to get it back vget() must be * used. * - * for procfs, check if the process is still - * alive and if it isn't then just throw away - * the vnode by calling vgone(). this may - * be overkill and a waste of time since the - * chances are that the process will still be - * there and PFIND is not free. - * * (vp) is locked on entry, but must be unlocked on exit. */ static int @@ -340,11 +333,8 @@ procfs_inactive(ap) } */ *ap; { struct vnode *vp = ap->a_vp; - struct pfsnode *pfs = VTOPFS(vp); VOP_UNLOCK(vp, 0, ap->a_p); - if (PFIND(pfs->pfs_pid) == 0) - vgone(vp); return (0); } |