Avoid a couple of mutex operations in the process exit path for the

common case where procfs have never been mounted.

OK'ed by:	des
This commit is contained in:
phk 2005-03-01 12:20:49 +00:00
parent 2df73116df
commit 42879cd3ce

View File

@ -226,6 +226,8 @@ pfs_exit(void *arg, struct proc *p)
struct pfs_vdata *pvd;
struct vnode *vnp;
if (pfs_vncache == NULL)
return;
mtx_lock(&Giant);
/*
* This is extremely inefficient due to the fact that vgone() not