svn commit: r356531 - stable/12/sys/geom/eli

Alexander Motin mav at FreeBSD.org
Thu Jan 9 00:39:36 UTC 2020


Author: mav
Date: Thu Jan  9 00:39:35 2020
New Revision: 356531
URL: https://svnweb.freebsd.org/changeset/base/356531

Log:
  MFC r356284: Remove extra check for provider being closed.
  
  We already checked for that earlier, and since we hold topology lock
  it could not change.

Modified:
  stable/12/sys/geom/eli/g_eli.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/geom/eli/g_eli.c
==============================================================================
--- stable/12/sys/geom/eli/g_eli.c	Thu Jan  9 00:36:28 2020	(r356530)
+++ stable/12/sys/geom/eli/g_eli.c	Thu Jan  9 00:39:35 2020	(r356531)
@@ -962,8 +962,7 @@ g_eli_destroy(struct g_eli_softc *sc, boolean_t force)
 	bzero(sc, sizeof(*sc));
 	free(sc, M_ELI);
 
-	if (pp == NULL || (pp->acr == 0 && pp->acw == 0 && pp->ace == 0))
-		G_ELI_DEBUG(0, "Device %s destroyed.", gp->name);
+	G_ELI_DEBUG(0, "Device %s destroyed.", gp->name);
 	g_wither_geom_close(gp, ENXIO);
 
 	return (0);


More information about the svn-src-all mailing list