When taking event callbacks (like process_exit) out from under Giant, those

which do not lock Giant themselves will be exposed.  Unbreak pfs_exit().
This commit is contained in:
Brian Feldman 2004-03-14 15:57:45 +00:00
parent bcfe6d8b26
commit 6fedf94775

View File

@ -222,6 +222,7 @@ pfs_exit(void *arg, struct proc *p)
{
struct pfs_vdata *pvd, *prev;
mtx_lock(&Giant);
mtx_lock(&pfs_vncache_mutex);
/*
* The double loop is necessary because vgone() indirectly
@ -239,6 +240,7 @@ pfs_exit(void *arg, struct proc *p)
break;
}
mtx_unlock(&pfs_vncache_mutex);
mtx_unlock(&Giant);
}
/*