Date: Fri, 26 Jun 2009 00:14:46 +0000 (UTC) From: Kip Macy <kmacy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r195017 - user/kmacy/releng_7_2_fcs/sys/net Message-ID: <200906260014.n5Q0EkiE068759@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kmacy Date: Fri Jun 26 00:14:46 2009 New Revision: 195017 URL: http://svn.freebsd.org/changeset/base/195017 Log: clarify panic Modified: user/kmacy/releng_7_2_fcs/sys/net/route.c Modified: user/kmacy/releng_7_2_fcs/sys/net/route.c ============================================================================== --- user/kmacy/releng_7_2_fcs/sys/net/route.c Fri Jun 26 00:03:10 2009 (r195016) +++ user/kmacy/releng_7_2_fcs/sys/net/route.c Fri Jun 26 00:14:46 2009 (r195017) @@ -372,8 +372,11 @@ rtfree(struct rtentry *rt) * with the route. */ if ((rt->rt_flags & RTF_UP) == 0) { - if (rt->rt_nodes->rn_flags & (RNF_ACTIVE | RNF_ROOT)) + if (rt->rt_nodes->rn_flags & (RNF_ACTIVE | RNF_ROOT)) { + printf("rn_flags=0x%x\n", rt->rt_nodes->rn_flags); panic("rtfree 2"); + } + /* * the rtentry must have been removed from the routing table * so it is represented in rttrash.. remove that now. @@ -756,14 +759,6 @@ rtexpunge(struct rtentry *rt) if (rnh == NULL) return (EAFNOSUPPORT); RADIX_NODE_HEAD_LOCK_ASSERT(rnh); -#if 0 - /* - * We cannot assume anything about the reference count - * because protocols call us in many situations; often - * before unwinding references to the table entry. - */ - KASSERT(rt->rt_refcnt <= 1, ("bogus refcnt %ld", rt->rt_refcnt)); -#endif /* * Remove the item from the tree; it should be there, * but when callers invoke us blindly it may not (sigh).
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906260014.n5Q0EkiE068759>