From owner-p4-projects Fri Feb 28 6:16:39 2003 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id AC5B037B405; Fri, 28 Feb 2003 06:16:37 -0800 (PST) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B88737B401 for ; Fri, 28 Feb 2003 06:16:37 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id F153C43F75 for ; Fri, 28 Feb 2003 06:16:36 -0800 (PST) (envelope-from jhb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h1SEGa0U040320 for ; Fri, 28 Feb 2003 06:16:36 -0800 (PST) (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h1SEGa2R040317 for perforce@freebsd.org; Fri, 28 Feb 2003 06:16:36 -0800 (PST) Date: Fri, 28 Feb 2003 06:16:36 -0800 (PST) Message-Id: <200302281416.h1SEGa2R040317@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jhb@freebsd.org using -f From: John Baldwin Subject: PERFORCE change 26071 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://perforce.freebsd.org/chv.cgi?CH=26071 Change 26071 by jhb@jhb_laptop on 2003/02/28 06:15:43 Always skip over dead eventhandler entries during an insertion to make sure the priority compares work out right. Affected files ... .. //depot/projects/smpng/sys/kern/subr_eventhandler.c#16 edit Differences ... ==== //depot/projects/smpng/sys/kern/subr_eventhandler.c#16 (text+ko) ==== @@ -129,7 +129,8 @@ func, name); EHL_LOCK(list); TAILQ_FOREACH(ep, &list->el_entries, ee_link) { - if (eg->ee.ee_priority < ep->ee_priority) { + if (ep->ee_priority != EHE_DEAD_PRIORITY && + eg->ee.ee_priority < ep->ee_priority) { TAILQ_INSERT_BEFORE(ep, &eg->ee, ee_link); break; } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message