Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Nov 2004 14:22:14 -0800
From:      John-Mark Gurney <gurney_j@resnet.uoregon.edu>
To:        "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/pci if_sk.c if_skreg.h
Message-ID:  <20041115222214.GK57546@funkthat.com>
In-Reply-To: <Pine.BSF.4.53.0411152130590.9964@e0-0.zab2.int.zabbadoz.net>
References:  <200411151937.iAFJbLak002480@repoman.freebsd.org> <Pine.BSF.4.53.0411152130590.9964@e0-0.zab2.int.zabbadoz.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Bjoern A. Zeeb wrote this message on Mon, Nov 15, 2004 at 21:37 +0000:
> On Mon, 15 Nov 2004, John-Mark Gurney wrote:
> 
> > jmg         2004-11-15 19:37:21 UTC
> >
> >   FreeBSD src repository
> >
> >   Modified files:
> >     sys/pci              if_sk.c if_skreg.h
> >   Log:
> >   fix the missing lock in sk_jfree (verified w/ an assert)
> >   also fix up handling and proding of the tx, _OACTIVE is now handled
> >   better...
> >
> >   Submitted by:   Peter Edwards (sk_jfree)
> >   Obtained from:  OpenBSD and/or NetBSD (tx prod)
> 
> This seems to be different from the version in
> http://lists.freebsd.org/pipermail/freebsd-current/2004-November/042195.html
> I had reports of people running into the panic in sk_jfree
> with the patch from this link.

Yes, the one that I posted in that message was to make sure that we
didn't have the lock (and prevent adding another recursion point)..
I finally got around to testing that patch myself, and it was truely
unlocked...

> *hmm*
> 
> > @@ -1104,6 +1106,7 @@ sk_jfree(buf, args)
> >
> >  	/* Extract the softc struct pointer. */
> >  	sc_if = (struct sk_if_softc *)args;
> > +	SK_IF_LOCK(sc_if);
> >
> >  	if (sc_if == NULL)
> >  		panic("sk_jfree: didn't get softc pointer!");
> 
> mind moving the SK_IF_LOCK down behind the NULL/panic check ?

Sure, np...

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."



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