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:
parent
2df73116df
commit
42879cd3ce
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user