summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_trap.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-04-23 18:51:55 +0000
committerjhb <jhb@FreeBSD.org>2003-04-23 18:51:55 +0000
commit2c416d197de0e0ef919ed07229f45ee6907ba14e (patch)
tree1f18d0460a114f1882bd6abe7ba9ded42c7b24a4 /sys/kern/subr_trap.c
parent26097c18e1ece1d3eb62cb15acf003491cb988de (diff)
downloadFreeBSD-src-2c416d197de0e0ef919ed07229f45ee6907ba14e.zip
FreeBSD-src-2c416d197de0e0ef919ed07229f45ee6907ba14e.tar.gz
The signotify() sanity check in userret() doesn't need Giant anymore.
Diffstat (limited to 'sys/kern/subr_trap.c')
-rw-r--r--sys/kern/subr_trap.c2
1 files changed, 0 insertions, 2 deletions
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
/*
OpenPOWER on IntegriCloud