Switch from conditionally dropping Giant in exit1() to asserting it is

not held, which appears to be always true.
This commit is contained in:
kris 2008-02-17 15:28:28 +00:00
parent 51d69a452f
commit 8697995804

View File

@ -118,12 +118,7 @@ exit1(struct thread *td, int rv)
struct plimit *plim;
int locked;
/*
* Drop Giant if caller has it. Eventually we should warn about
* being called with Giant held.
*/
while (mtx_owned(&Giant))
mtx_unlock(&Giant);
mtx_assert(&Giant, MA_NOTOWNED);
p = td->td_proc;
if (p == initproc) {