1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-05 12:56:08 +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; struct plimit *plim;
int locked; int locked;
/* mtx_assert(&Giant, MA_NOTOWNED);
* Drop Giant if caller has it. Eventually we should warn about
* being called with Giant held.
*/
while (mtx_owned(&Giant))
mtx_unlock(&Giant);
p = td->td_proc; p = td->td_proc;
if (p == initproc) { if (p == initproc) {