From owner-cvs-all Sat Mar 3 16:49:46 2001 Delivered-To: cvs-all@freebsd.org Received: from aslan.scsiguy.com (mail.scsiguy.com [63.229.232.106]) by hub.freebsd.org (Postfix) with ESMTP id 08A7137B719; Sat, 3 Mar 2001 16:49:40 -0800 (PST) (envelope-from gibbs@scsiguy.com) Received: from scsiguy.com (localhost [127.0.0.1]) by aslan.scsiguy.com (8.11.2/8.9.3) with ESMTP id f240ncO75112; Sat, 3 Mar 2001 17:49:39 -0700 (MST) (envelope-from gibbs@scsiguy.com) Message-Id: <200103040049.f240ncO75112@aslan.scsiguy.com> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: John Baldwin Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_intr.c src/sys/sys interrupt.h In-Reply-To: Your message of "Wed, 21 Feb 2001 18:18:33 PST." <200102220218.f1M2IX081475@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 03 Mar 2001 17:49:38 -0700 From: "Justin T. Gibbs" Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >jhb 2001/02/21 18:18:33 PST > > Modified files: > sys/kern kern_intr.c > sys/sys interrupt.h > Log: > Work around a race condition where an interrupt handler can be removed from > an interrupt thread while the interrupt thread is blocked on Giant waiting > to execute the interrupt handler being removed. Isn't there still a race for a driver trying to deregister its handler while an interrupt is running or about to run? It seems to me that the unregister call should block (spin?) until it is guaranteed that the hander is not executing and can never be called again. -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message