svn commit: r325009 - head/sys/geom/mountver

Gleb Smirnoff glebius at FreeBSD.org
Thu Oct 26 20:33:11 UTC 2017


  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


More information about the svn-src-head mailing list