Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 May 2018 00:05:03 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r333279 - head/sys/geom/mirror
Message-ID:  <201805060005.w46053Eg064194@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Sun May  6 00:05:03 2018
New Revision: 333279
URL: https://svnweb.freebsd.org/changeset/base/333279

Log:
  Remove a redundant assertion.
  
  MFC after:	1 week
  Sponsored by:	Dell EMC Isilon

Modified:
  head/sys/geom/mirror/g_mirror.c

Modified: head/sys/geom/mirror/g_mirror.c
==============================================================================
--- head/sys/geom/mirror/g_mirror.c	Sun May  6 00:03:24 2018	(r333278)
+++ head/sys/geom/mirror/g_mirror.c	Sun May  6 00:05:03 2018	(r333279)
@@ -207,7 +207,6 @@ g_mirror_event_send(void *arg, int state, int flags)
 	mtx_unlock(&sc->sc_queue_mtx);
 	if ((flags & G_MIRROR_EVENT_DONTWAIT) != 0)
 		return (0);
-	sx_assert(&sc->sc_lock, SX_XLOCKED);
 	G_MIRROR_DEBUG(4, "%s: Sleeping %p.", __func__, ep);
 	sx_xunlock(&sc->sc_lock);
 	while ((ep->e_flags & G_MIRROR_EVENT_DONE) == 0) {



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