em0 panic: mutex em0 not owned

Attilio Rao attilio at freebsd.org
Tue Nov 27 11:17:37 PST 2007


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 @ /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


More information about the freebsd-current mailing list