Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Oct 2017 12:03:06 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r325101 - head/sys/geom/mountver
Message-ID:  <201710291203.v9TC36Zp042229@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Sun Oct 29 12:03:06 2017
New Revision: 325101
URL: https://svnweb.freebsd.org/changeset/base/325101

Log:
  Add back missing MTX_DEF, it still needs to be there.
  
  (Although it's defined to be 0, so there's no functional change.)
  
  Reported by:	glebius
  MFC after:	2 weeks

Modified:
  head/sys/geom/mountver/g_mountver.c

Modified: head/sys/geom/mountver/g_mountver.c
==============================================================================
--- head/sys/geom/mountver/g_mountver.c	Sun Oct 29 09:50:20 2017	(r325100)
+++ head/sys/geom/mountver/g_mountver.c	Sun Oct 29 12:03:06 2017	(r325101)
@@ -257,7 +257,7 @@ g_mountver_create(struct gctl_req *req, struct g_class
 	}
 	gp = g_new_geomf(mp, "%s", name);
 	sc = g_malloc(sizeof(*sc), M_WAITOK | M_ZERO);
-	mtx_init(&sc->sc_mtx, "gmountver", NULL, MTX_RECURSE);
+	mtx_init(&sc->sc_mtx, "gmountver", NULL, MTX_DEF | MTX_RECURSE);
 	TAILQ_INIT(&sc->sc_queue);
 	sc->sc_provider_name = strdup(pp->name, M_GEOM);
 	gp->softc = sc;



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