From 2c416d197de0e0ef919ed07229f45ee6907ba14e Mon Sep 17 00:00:00 2001 From: jhb Date: Wed, 23 Apr 2003 18:51:55 +0000 Subject: The signotify() sanity check in userret() doesn't need Giant anymore. --- sys/kern/subr_trap.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sys/kern/subr_trap.c') diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c index 11e25e4..b2fc0fc 100644 --- a/sys/kern/subr_trap.c +++ b/sys/kern/subr_trap.c @@ -78,7 +78,6 @@ userret(td, frame, oticks) p->p_comm); #ifdef INVARIANTS /* Check that we called signotify() enough. */ - mtx_lock(&Giant); PROC_LOCK(p); mtx_lock_spin(&sched_lock); if (SIGPENDING(td) && ((td->td_flags & TDF_NEEDSIGCHK) == 0 || @@ -86,7 +85,6 @@ userret(td, frame, oticks) printf("failed to set signal flags properly for ast()\n"); mtx_unlock_spin(&sched_lock); PROC_UNLOCK(p); - mtx_unlock(&Giant); #endif /* -- cgit v1.1