From owner-cvs-all Mon Dec 11 20: 1:38 2000 From owner-cvs-all@FreeBSD.ORG Mon Dec 11 20:01:35 2000 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 8DB4937B400; Mon, 11 Dec 2000 20:01:35 -0800 (PST) Received: (from jhb@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id eBC41ZZ28700; Mon, 11 Dec 2000 20:01:35 -0800 (PST) (envelope-from jhb) Message-Id: <200012120401.eBC41ZZ28700@freefall.freebsd.org> From: John Baldwin Date: Mon, 11 Dec 2000 20:01:35 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys kernel.h eventhandler.h src/sys/kern subr_eventhandler.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG jhb 2000/12/11 20:01:35 PST Modified files: sys/sys kernel.h eventhandler.h sys/kern subr_eventhandler.c Log: - Convert the per-eventhandler list mutex to a lockmgr lock so that it can be safely held across an eventhandler function call. - Fix an instance of the head of an eventhandler list being read without the lock being held. - Break down and use a SYSINIT at the new SI_SUB_EVENTHANDLER to initialize the eventhandler global mutex and the eventhandler list of lists rather than using a non-MP safe initialization during the first call to eventhandler_register(). - Add in a KASSERT() to eventhandler_register() to ensure that we don't try to register an eventhandler before things have been initialized. Revision Changes Path 1.75 +2 -1 src/sys/sys/kernel.h 1.15 +9 -11 src/sys/sys/eventhandler.h 1.9 +21 -12 src/sys/kern/subr_eventhandler.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message