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:
Poul-Henning Kamp 2005-03-01 12:20:49 +00:00
parent 31199c8463
commit a24042b727

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