From owner-cvs-src-old@FreeBSD.ORG Thu Dec 17 21:17:26 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 723601065779 for ; Thu, 17 Dec 2009 21:17:26 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 615E98FC1A for ; Thu, 17 Dec 2009 21:17:26 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id nBHLHQwQ055046 for ; Thu, 17 Dec 2009 21:17:26 GMT (envelope-from thompsa@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id nBHLHQ7g055045 for cvs-src-old@freebsd.org; Thu, 17 Dec 2009 21:17:26 GMT (envelope-from thompsa@repoman.freebsd.org) Message-Id: <200912172117.nBHLHQ7g055045@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to thompsa@repoman.freebsd.org using -f From: Andrew Thompson Date: Thu, 17 Dec 2009 21:17:13 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern subr_eventhandler.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Dec 2009 21:17:26 -0000 thompsa 2009-12-17 21:17:13 UTC FreeBSD src repository Modified files: sys/kern subr_eventhandler.c Log: SVN rev 200652 on 2009-12-17 21:17:13Z by thompsa If the runcount is non-zero in eventhandler_deregister() then one or more threads are executing the eventhandler, sleep in this case to make it safe for module unload. If the runcount was up then an entry would have been marked EHE_DEAD_PRIORITY so use this as a trigger to do the wakeup in eventhandler_prune_list(). Reviewed by: jhb Revision Changes Path 1.25 +7 -4 src/sys/kern/subr_eventhandler.c