From owner-freebsd-current@FreeBSD.ORG Tue Nov 27 19:17:37 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 550E516A419 for ; Tue, 27 Nov 2007 19:17:37 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.freebsd.org (Postfix) with ESMTP id 25D0C13C46A for ; Tue, 27 Nov 2007 19:17:35 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so1029510nfb for ; Tue, 27 Nov 2007 11:17:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=iRIkYm3rPNy44SW5BOa2y2p/RBRUzvz8J/kc7UVBJww=; b=obSHKYj0WoHaLPBghXoHnRkl24sccM1IsNUd7urn+2MmXs6AoTzVSgDrq4IC78hYmFHJkMyoc1TzL4d+6cwdgmKeYZ1aPbwk7LzRJ2o8gguuzLBEZx7sysXQKotjgtx9VF1cf4bPmR2eItf1+xUUSRF6n5p7Ur9oMTqq1hwgtzo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=O+UkVStiYERs4HjdExESnCZom8dv9KL1y8trhxc1HpDvzrps5QpaWjnnIuDXqrGsxrplnmYbzyN7JyiuG5Ic0uOQrCDY1fS7Gg/iZWKfUXp2wANTVmkJJ0FK2LTHS6TKYBKhrzHJDvSOx0eJnAXxzymxH2uvyS6xJdtIFt3h59Y= Received: by 10.86.66.1 with SMTP id o1mr2567453fga.1196191053860; Tue, 27 Nov 2007 11:17:33 -0800 (PST) Received: by 10.86.28.19 with HTTP; Tue, 27 Nov 2007 11:17:33 -0800 (PST) Message-ID: <3bbf2fe10711271117w18707adfxc42a7c65dd15445b@mail.gmail.com> Date: Tue, 27 Nov 2007 20:17:33 +0100 From: "Attilio Rao" Sender: asmrookie@gmail.com To: "Jack Vogel" In-Reply-To: <3bbf2fe10711271111w5bc7f2b1ta4264cb14b6f1626@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4744EBA4.7020209@clearchain.com> <3bbf2fe10711220408t30136430s15fdba0ebcbbfa66@mail.gmail.com> <3bbf2fe10711220427s38561159k4879d0c792d09694@mail.gmail.com> <474B4876.9020209@clearchain.com> <3bbf2fe10711261431s1b1bd697n46d370900d5fe9c0@mail.gmail.com> <2a41acea0711261434u817eb06xe05eba8447afc3ae@mail.gmail.com> <2a41acea0711270925w55742526n7ef77b1fcef3016f@mail.gmail.com> <3bbf2fe10711271111w5bc7f2b1ta4264cb14b6f1626@mail.gmail.com> X-Google-Sender-Auth: 145fce7a76005dab Cc: freebsd-current@freebsd.org, Mark Atkinson Subject: Re: em0 panic: mutex em0 not owned X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 27 Nov 2007 19:17:37 -0000 2007/11/27, Attilio Rao : > 2007/11/27, Jack Vogel : > > On Nov 27, 2007 8:10 AM, Mark Atkinson wrote: > > > > > > > > Is this expected after the fix? > > > > > > acquiring duplicate lock of same type: "network driver" > > > 1st em0 @ /usr/src/sys/dev/em/if_em.c:1018 > > > 2nd em0 @ /usr/src/sys/dev/em/if_em.c:1252 > > > > Same type, different lock, I don't see a problem unless > > there's some subtle thing I'm not aware of? > > do you use the same name in mutex initialization? I just checked and it seems so. WITNESS uses lock names for some checks like this, so you should use a different ptr for names. Attilio -- Peace can only be achieved by understanding - A. Einstein