Date: Mon, 11 Dec 2000 20:01:35 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> 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 Message-ID: <200012120401.eBC41ZZ28700@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012120401.eBC41ZZ28700>
