From owner-cvs-all Wed Nov 15 18:16:49 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A501537B4CF; Wed, 15 Nov 2000 18:16:45 -0800 (PST) Received: (from jhb@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id SAA29000; Wed, 15 Nov 2000 18:16:45 -0800 (PST) (envelope-from jhb@FreeBSD.org) Message-Id: <200011160216.SAA29000@freefall.freebsd.org> From: John Baldwin Date: Wed, 15 Nov 2000 18:16:45 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/alpha/alpha trap.c src/sys/i386/i386 trap.c src/sys/ia64/ia64 trap.c src/sys/kern kern_mutex.c kern_shutdown.c kern_sig.c kern_subr.c kern_synch.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG jhb 2000/11/15 18:16:45 PST Modified files: sys/alpha/alpha trap.c sys/i386/i386 trap.c sys/ia64/ia64 trap.c sys/kern kern_mutex.c kern_shutdown.c kern_sig.c kern_subr.c kern_synch.c Log: Don't release and acquire Giant in mi_switch(). Instead, release and acquire Giant as needed in functions that call mi_switch(). The releases need to be done outside of the sched_lock to avoid potential deadlocks from trying to acquire Giant while interrupts are disabled. Submitted by: witness Revision Changes Path 1.36 +3 -1 src/sys/alpha/alpha/trap.c 1.160 +3 -1 src/sys/i386/i386/trap.c 1.6 +3 -1 src/sys/ia64/ia64/trap.c 1.16 +5 -40 src/sys/kern/kern_mutex.c 1.88 +3 -1 src/sys/kern/kern_shutdown.c 1.91 +9 -1 src/sys/kern/kern_sig.c 1.37 +3 -1 src/sys/kern/kern_subr.c 1.108 +6 -17 src/sys/kern/kern_synch.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message