cvs commit: src/sys/dev/an if_an.c

Maksim Yevmenkin maksim.yevmenkin at gmail.com
Thu Aug 4 21:19:34 GMT 2005


On 8/4/05, Maksim Yevmenkin <emax at freebsd.org> wrote:
> emax        2005-08-04 21:12:22 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:        (Branch: RELENG_6)
>     sys/dev/an           if_an.c
>   Log:
>   MFC if_an.c v1.69 to RELENG_6
> 
>   Reorganize an_detach() a bit. Make sure ether_ifdetach() and if_free()
>   are called outside of AN_LOCK()/AN_UNLOCK. This fixes the following
>   WITNESS warning (produced when an(4) PCMCIA card is detached).
>   taskqueue_drain with the following non-sleepable locks held:
>   exclusive sleep mutex an0 (network driver) r = 0 (0xc59af168) locked @ /usr/src/
>   sys/dev/an/if_an.c:2836
> 
>   Do not lock an to check gone flag. Only need to hold the lock to set
>   the gone flag.
> 
>   Reviewed by:    imp
>   Approved by:    re (kemsmith)

Approved by:    re (kensmith)

please accept my apologies

> 
>   Revision  Changes    Path
>   1.67.2.1  +2 -2      src/sys/dev/an/if_an.c
> 

max


More information about the cvs-all mailing list