1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=176365

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