From owner-svn-src-projects@freebsd.org Sun Apr 24 16:33:27 2016 Return-Path: Delivered-To: svn-src-projects@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 22AECB1B67D for ; Sun, 24 Apr 2016 16:33:27 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E23441F90; Sun, 24 Apr 2016 16:33:26 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u3OGXQCV077334; Sun, 24 Apr 2016 16:33:26 GMT (envelope-from bz@FreeBSD.org) Received: (from bz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u3OGXQAY077333; Sun, 24 Apr 2016 16:33:26 GMT (envelope-from bz@FreeBSD.org) Message-Id: <201604241633.u3OGXQAY077333@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bz set sender to bz@FreeBSD.org using -f From: "Bjoern A. Zeeb" Date: Sun, 24 Apr 2016 16:33:26 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r298546 - projects/vnet/sys/net X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2016 16:33:27 -0000 Author: bz Date: Sun Apr 24 16:33:25 2016 New Revision: 298546 URL: https://svnweb.freebsd.org/changeset/base/298546 Log: Update the sysuninit subsystem before calling into the function handler so we always know at which stage we are running. Sponsored by: The FreeBSD Foundation Modified: projects/vnet/sys/net/vnet.c Modified: projects/vnet/sys/net/vnet.c ============================================================================== --- projects/vnet/sys/net/vnet.c Sun Apr 24 16:07:50 2016 (r298545) +++ projects/vnet/sys/net/vnet.c Sun Apr 24 16:33:25 2016 (r298546) @@ -582,8 +582,8 @@ vnet_sysuninit(void) VNET_SYSINIT_RLOCK(); TAILQ_FOREACH_REVERSE(vs, &vnet_destructors, vnet_sysuninit_head, link) { - vs->func(vs->arg); curvnet->vnet_state = vs->subsystem; + vs->func(vs->arg); } VNET_SYSINIT_RUNLOCK(); }