From owner-freebsd-current@FreeBSD.ORG Mon May 26 16:25:39 2003 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 1E32037B401; Mon, 26 May 2003 16:25:39 -0700 (PDT) Received: from dmlb.org (pc2-cmbg4-6-cust36.cmbg.cable.ntl.com [81.96.76.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F11B43F85; Mon, 26 May 2003 16:25:38 -0700 (PDT) (envelope-from dmlb@dmlb.org) Received: from slave.my.domain ([192.168.200.39]) by dmlb.org with esmtp (Exim 3.36 #1) id 19KRLV-000GVr-00; Tue, 27 May 2003 00:25:37 +0100 Received: from dmlb by slave.my.domain with local (Exim 3.36 #1) id 19KRLV-000Jch-00; Tue, 27 May 2003 00:25:37 +0100 Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20030526153437.T86964@sasami.jurai.net> Date: Tue, 27 May 2003 00:25:37 +0100 (BST) From: Duncan Barclay To: "Matthew N. Dodd" Sender: Duncan Barclay cc: freebsd-current@FreeBSD.ORG cc: current@FreeBSD.ORG Subject: Re: kldunload and device detach panics 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, 26 May 2003 23:25:39 -0000 On 26-May-2003 Matthew N. Dodd wrote: > On Mon, 26 May 2003, Duncan Barclay wrote: >> Is there a safe sequence of mutex checking etc. to avoid killing the machine >> in this way? > > mtx_initialized() Thanks. I also discovered that I had a bug so that the detach got called twice. Mea culpa. Duncan -- ________________________________________________________________________ Duncan Barclay | dmlb@dmlb.org | dmlb@freebsd.org|