]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Hold GIF_LOCK() for almost all of gif_start(). It is required to be held
authorJohn Baldwin <jhb@FreeBSD.org>
Fri, 29 Jun 2012 15:21:34 +0000 (15:21 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Fri, 29 Jun 2012 15:21:34 +0000 (15:21 +0000)
commit304050dde060facc39178d319b5a71701f01ee54
tree8fbe06d03fb7d3a8609552c31432b253571524eb
parent436f647402d0a2ea86ae8ba392f9f8292ba211ca
Hold GIF_LOCK() for almost all of gif_start().  It is required to be held
across in_gif_output() and in6_gif_output() anyway, and once it is held
across those it might as well be held for the entire loop.  This simplifies
the code and removes the need for the custom IFF_GIF_WANTED flag (which
belonged in the softc and not as an IFF_* flag anyway).

Tested by: Vincent Hoffman  vince  unsane co uk
sys/net/if.h
sys/net/if_gif.c