From 869799580497fabd00e4a119fd0112acb0202561 Mon Sep 17 00:00:00 2001 From: kris Date: Sun, 17 Feb 2008 15:28:28 +0000 Subject: [PATCH] Switch from conditionally dropping Giant in exit1() to asserting it is not held, which appears to be always true. --- sys/kern/kern_exit.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 46bbaa5ca12..910f742f7d6 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -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) { -- 2.45.0