Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Oct 2017 13:24:00 -0700
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        Edward Tomasz Napierala <trasz@FreeBSD.org>
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>
In-Reply-To: <201710261018.v9QAIVsT088779@repo.freebsd.org>
References:  <201710261018.v9QAIVsT088779@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
  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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20171026202400.GF1100>