From owner-svn-src-head@freebsd.org Thu Oct 26 20:33:11 2017 Return-Path: Delivered-To: svn-src-head@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 AADC7E52ADF; Thu, 26 Oct 2017 20:33:11 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebi.us (glebi.us [96.95.210.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cell.glebi.us", Issuer "cell.glebi.us" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9198568948; Thu, 26 Oct 2017 20:33:11 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebi.us (localhost [127.0.0.1]) by cell.glebi.us (8.15.2/8.15.2) with ESMTPS id v9QKO0P0006539 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 26 Oct 2017 13:24:01 -0700 (PDT) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebi.us (8.15.2/8.15.2/Submit) id v9QKO09O006538; Thu, 26 Oct 2017 13:24:00 -0700 (PDT) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebi.us: glebius set sender to glebius@FreeBSD.org using -f Date: Thu, 26 Oct 2017 13:24:00 -0700 From: Gleb Smirnoff To: Edward Tomasz Napierala Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r325009 - head/sys/geom/mountver Message-ID: <20171026202400.GF1100@FreeBSD.org> References: <201710261018.v9QAIVsT088779@repo.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201710261018.v9QAIVsT088779@repo.freebsd.org> User-Agent: Mutt/1.9.1 (2017-09-22) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Oct 2017 20:33:11 -0000 Hi Edward, On Thu, Oct 26, 2017 at 10:18:31AM +0000, Edward Tomasz Napierala wrote: E> Log: E> Make gmountver(8) use direct dispatch. E> E> MFC after: 2 weeks E> E> Modified: E> head/sys/geom/mountver/g_mountver.c E> E> Modified: head/sys/geom/mountver/g_mountver.c E> ============================================================================== E> --- head/sys/geom/mountver/g_mountver.c Thu Oct 26 10:11:35 2017 (r325008) E> +++ head/sys/geom/mountver/g_mountver.c Thu Oct 26 10:18:31 2017 (r325009) E> @@ -257,7 +257,7 @@ g_mountver_create(struct gctl_req *req, struct g_class E> } E> gp = g_new_geomf(mp, "%s", name); E> sc = g_malloc(sizeof(*sc), M_WAITOK | M_ZERO); E> - mtx_init(&sc->sc_mtx, "gmountver", NULL, MTX_DEF); E> + mtx_init(&sc->sc_mtx, "gmountver", NULL, MTX_RECURSE); MTX_RECURSE is a flag not a type, should be: mtx_init(&sc->sc_mtx, "gmountver", NULL, MTX_DEF | MTX_RECURSE); -- Gleb Smirnoff