From owner-p4-projects@FreeBSD.ORG Thu Aug 4 11:07:37 2005 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id F0C7B16A421; Thu, 4 Aug 2005 11:07:36 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CB20B16A41F for ; Thu, 4 Aug 2005 11:07:36 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 55AA543D45 for ; Thu, 4 Aug 2005 11:07:36 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j74B7a6d073355 for ; Thu, 4 Aug 2005 11:07:36 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j74B7adD073352 for perforce@freebsd.org; Thu, 4 Aug 2005 11:07:36 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Thu, 4 Aug 2005 11:07:36 GMT Message-Id: <200508041107.j74B7adD073352@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 81438 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Aug 2005 11:07:37 -0000 http://perforce.freebsd.org/chv.cgi?CH=81438 Change 81438 by rwatson@rwatson_zoo on 2005/08/04 11:06:58 Annotate problem with if_addr_mtx locking in the vlan code, the reason that I haven't yet merged thes changes. Affected files ... .. //depot/projects/netsmp/src/sys/net/if_vlan.c#3 edit Differences ... ==== //depot/projects/netsmp/src/sys/net/if_vlan.c#3 (text+ko) ==== @@ -188,6 +188,15 @@ } /* Now program new ones. */ + + /* + * XXXRW: Really, this should happen in two steps, interlocked by the + * vlan mutex (if any: first, the parent interface's address list + * should be propagated to the softc, then from the softc to the + * child, in order to avoid holding parent's and child's if_addr_mtx + * at the same time. Races can occur, but won't result in + * incorrectness. Assuming there is a vlan mutex. + */ IF_ADDR_LOCK(ifp); TAILQ_FOREACH(ifma, &ifp->if_multiaddrs, ifma_link) { if (ifma->ifma_addr->sa_family != AF_LINK)