PERFORCE change 38769 for review
Sam Leffler
sam at FreeBSD.org
Sun Sep 28 21:24:36 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=38769
Change 38769 by sam at sam_ebb on 2003/09/28 21:24:02
One more time: rtrequest(RTM_DELETE...) locks the route so we cannot
be holding it when we call it.
Affected files ...
.. //depot/projects/netperf/sys/netinet/if_ether.c#9 edit
Differences ...
==== //depot/projects/netperf/sys/netinet/if_ether.c#9 (text+ko) ====
@@ -936,13 +936,14 @@
* If this is the only references to a protocol
* cloned route, remove it.
*/
+ RT_UNLOCK(rt);
if (rt->rt_refcnt == 1 && (rt->rt_flags & RTF_WASCLONED)) {
rtrequest(RTM_DELETE,
(struct sockaddr *)rt_key(rt),
rt->rt_gateway, rt_mask(rt),
rt->rt_flags, 0);
}
- RTFREE_LOCKED(rt);
+ RTFREE(rt);
return (0);
} else {
rt->rt_refcnt--;
More information about the p4-projects
mailing list