From owner-freebsd-current@FreeBSD.ORG Mon Aug 2 20:00:58 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97F0016A522 for ; Mon, 2 Aug 2004 20:00:58 +0000 (GMT) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 792CC43D55 for ; Mon, 2 Aug 2004 20:00:48 +0000 (GMT) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) i72K0dds002699; Mon, 2 Aug 2004 13:00:40 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.9p2/8.12.9/Submit) id i72K0cWU002698; Mon, 2 Aug 2004 13:00:38 -0700 (PDT) (envelope-from dillon) Date: Mon, 2 Aug 2004 13:00:38 -0700 (PDT) From: Matthew Dillon Message-Id: <200408022000.i72K0cWU002698@apollo.backplane.com> To: =?ISO-8859-1?Q?S=F8ren_Schmidt?= References: <410E688D.7020709@will.iki.fi> <410E74F7.1070000@will.iki.fi> <20040802132802.3d7kgoow0c80ss0s@www.sweetdreamsracing.biz> <410E7B8B.3080407@will.iki.fi> <410E81B8.1000206@DeepCore.dk> cc: Kenneth Culver cc: freebsd-current@freebsd.org cc: Ville-Pertti Keinonen Subject: Re: ATA driver races with interrupts X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Aug 2004 20:00:58 -0000 I should also note that there seems to be an assumption (at least in 4.x) that no ATA interrupt will occur once the ATA interrupt is masked. The problem with this assumption is that the ATA interrupt could have already occured and been queued/delayed due to a mutex, Giant, or other mechanism, just prior to the device interrupt being masked. It is exactly the same problem that one has with shared device interrupts so hopefully solving the shared device interrupt case will also solve the interrupt masking race case. -Matt