From 1cb95fd2b70283ee01393976b8c4f6582fe4c61f Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 13 Mar 2004 22:31:39 +0000 Subject: Push Giant down a little further: - no longer serialize on Giant for thread_single*() and family in fork, exit and exec - thread_wait() is mpsafe, assert no Giant - reduce scope of Giant in exit to not cover thread_wait and just do vm_waitproc(). - assert that thread_single() family are not called with Giant - remove the DROP/PICKUP_GIANT macros from thread_single() family - assert that thread_suspend_check() s not called with Giant - remove manual drop_giant hack in thread_suspend_check since we know it isn't held. - remove the DROP/PICKUP_GIANT macros from thread_suspend_check() family - mark kse_create() mpsafe --- sys/kern/subr_trap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/kern/subr_trap.c') diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c index 3e40672..9d17208 100644 --- a/sys/kern/subr_trap.c +++ b/sys/kern/subr_trap.c @@ -114,9 +114,8 @@ userret(td, frame, oticks) /* * Do special thread processing, e.g. upcall tweaking and such. */ - if (p->p_flag & P_SA) { + if (p->p_flag & P_SA) thread_userret(td, frame); - } /* * Charge system time if profiling. -- cgit v1.1