summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r--sys/kern/kern_exit.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index 46bbaa5..910f742 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) {
OpenPOWER on IntegriCloud