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 Kennaway 2008-02-17 15:28:28 +00:00
parent d950018dc2
commit e17660e79c

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) {