From owner-cvs-all Tue Jan 2 10:54:13 2001 From owner-cvs-all@FreeBSD.ORG Tue Jan 2 10:54:10 2001 Return-Path: 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 42D3737B400; Tue, 2 Jan 2001 10:54:10 -0800 (PST) Received: (from jhb@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f02IsAI77591; Tue, 2 Jan 2001 10:54:10 -0800 (PST) (envelope-from jhb) Message-Id: <200101021854.f02IsAI77591@freefall.freebsd.org> From: John Baldwin Date: Tue, 2 Jan 2001 10:54:10 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_sig.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG jhb 2001/01/02 10:54:10 PST Modified files: sys/kern kern_sig.c Log: The previous commit wasn't entirely correct. At least one goto to the out: label in psignal() did not grab sched_lock before trying to release it. Also, the previous version had several cases where it grabbed sched_lock before jumping to out: unneccessarily, so rework this a bit. The runfast: and out: labels must be called with sched_lock released, and the run: label must be called with it held. Appropriate mtx_assert()'s have been added that should catch any bugs that may still be in this code. Noticed by: bde Revision Changes Path 1.101 +23 -19 src/sys/kern/kern_sig.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message