Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Apr 2008 07:48:25 +0000
From:      Kris Kennaway <kris@FreeBSD.org>
To:        Andrew Thompson <thompsa@FreeBSD.org>
Cc:        cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org, Coleman Kane <cokane@FreeBSD.org>
Subject:   Re: cvs commit: src/sys/dev/if_ndis if_ndis.c if_ndisvar.h
Message-ID:  <20080418074825.GT25623@hub.freebsd.org>
In-Reply-To: <20080417221427.GD21457@citylink.fud.org.nz>
References:  <200804172201.m3HM1djs008290@repoman.freebsd.org> <20080417221427.GD21457@citylink.fud.org.nz>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Apr 18, 2008 at 10:14:27AM +1200, Andrew Thompson wrote:
> On Thu, Apr 17, 2008 at 10:01:39PM +0000, Coleman Kane wrote:
> > cokane      2008-04-17 22:01:39 UTC
> > 
> >   FreeBSD src repository
> > 
> >   Modified files:
> >     sys/dev/if_ndis      if_ndis.c if_ndisvar.h 
> >   Log:
> >   Change the timeout(9) usage in if_ndis to a callout(9) implementation,
> >   as the former is becoming deprecated and exhibits some extraneous
> >   Giant-locking. The new callout(9) is declared MPSAFE, so it may
> >   improve concurrency.
> >   
> >   Tested by:      matteo
> >   Silence from:   wpaul
> >   MFC after:      1 month
> >   
> > --- src/sys/dev/if_ndis/if_ndis.c	2008/01/17 20:11:58	1.131
> > +++ src/sys/dev/if_ndis/if_ndis.c	2008/04/17 22:01:38	1.132
> >  
> >  	return;
> >  }
> > @@ -1939,8 +1935,9 @@ ndis_init(xsc)
> >  	if (sc->ndis_block->nmb_checkforhangsecs == 0)
> >  		sc->ndis_block->nmb_checkforhangsecs = 3;
> >  
> > -	sc->ndis_stat_ch = timeout(ndis_tick, sc,
> > -	    hz * sc->ndis_block->nmb_checkforhangsecs);
> > +	callout_init(&sc->ndis_stat_callout, 1);
>                                            ^^^^^^^
>   This should be spelled CALLOUT_MPSAFE :)

Hah, I had made a note to check that later.  Thanks! :)

Kris

--
In God we Trust -- all others must submit an X.509 certificate.
    -- Charles Forsythe <forsythe@alum.mit.edu>



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