From owner-svn-src-all@FreeBSD.ORG Wed Dec 24 01:08:19 2008 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F3C91065676; Wed, 24 Dec 2008 01:08:19 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 3E31F8FC0C; Wed, 24 Dec 2008 01:08:19 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mBO18JuW018496; Wed, 24 Dec 2008 01:08:19 GMT (envelope-from kmacy@svn.freebsd.org) Received: (from kmacy@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mBO18Jkw018495; Wed, 24 Dec 2008 01:08:19 GMT (envelope-from kmacy@svn.freebsd.org) Message-Id: <200812240108.mBO18Jkw018495@svn.freebsd.org> From: Kip Macy Date: Wed, 24 Dec 2008 01:08:19 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r186468 - head/sys/netinet6 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Dec 2008 01:08:19 -0000 Author: kmacy Date: Wed Dec 24 01:08:18 2008 New Revision: 186468 URL: http://svn.freebsd.org/changeset/base/186468 Log: avoid lock recursion by deferring the link check until after LLE lock is dropped Modified: head/sys/netinet6/nd6_nbr.c Modified: head/sys/netinet6/nd6_nbr.c ============================================================================== --- head/sys/netinet6/nd6_nbr.c Wed Dec 24 01:00:30 2008 (r186467) +++ head/sys/netinet6/nd6_nbr.c Wed Dec 24 01:08:18 2008 (r186468) @@ -603,6 +603,7 @@ nd6_na_input(struct mbuf *m, int off, in int is_override; char *lladdr = NULL; int lladdrlen = 0; + int checklink = 0; struct ifaddr *ifa; struct llentry *ln = NULL; union nd_opts ndopts; @@ -739,7 +740,7 @@ nd6_na_input(struct mbuf *m, int off, in * non-reachable to probably reachable, and might * affect the status of associated prefixes.. */ - pfxlist_onlink_check(); + checklink = 1; } } else { int llchange; @@ -886,6 +887,9 @@ nd6_na_input(struct mbuf *m, int off, in if (chain) nd6_output_flush(ifp, ifp, chain, &sin6, NULL); } + if (checklink) + pfxlist_onlink_check(); + m_freem(m); return;