Re: em0 panic: mutex em0 not owned

From: Attilio Rao <attilio_at_freebsd.org>
Date: Tue, 27 Nov 2007 20:17:33 +0100
2007/11/27, Attilio Rao <attilio_at_freebsd.org>:
> 2007/11/27, Jack Vogel <jfvogel_at_gmail.com>:
> > On Nov 27, 2007 8:10 AM, Mark Atkinson <atkin901_at_yahoo.com> wrote:
> >
> > >
> > > Is this expected after the fix?
> > >
> > > acquiring duplicate lock of same type: "network driver"
> > >  1st em0 _at_ /usr/src/sys/dev/em/if_em.c:1018
> > >  2nd em0 _at_ /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
Received on Tue Nov 27 2007 - 18:17:37 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:23 UTC