Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Nov 2007 20:17:33 +0100
From:      "Attilio Rao" <attilio@freebsd.org>
To:        "Jack Vogel" <jfvogel@gmail.com>
Cc:        freebsd-current@freebsd.org, Mark Atkinson <atkin901@yahoo.com>
Subject:   Re: em0 panic: mutex em0 not owned
Message-ID:  <3bbf2fe10711271117w18707adfxc42a7c65dd15445b@mail.gmail.com>
In-Reply-To: <3bbf2fe10711271111w5bc7f2b1ta4264cb14b6f1626@mail.gmail.com>
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> <fihfhp$7ts$1@ger.gmane.org> <2a41acea0711270925w55742526n7ef77b1fcef3016f@mail.gmail.com> <3bbf2fe10711271111w5bc7f2b1ta4264cb14b6f1626@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2007/11/27, Attilio Rao <attilio@freebsd.org>:
> 2007/11/27, Jack Vogel <jfvogel@gmail.com>:
> > On Nov 27, 2007 8:10 AM, Mark Atkinson <atkin901@yahoo.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3bbf2fe10711271117w18707adfxc42a7c65dd15445b>