svn commit: r356284 - head/sys/geom/eli
Alexander Motin
mav at FreeBSD.org
Thu Jan 2 20:30:54 UTC 2020
Author: mav
Date: Thu Jan 2 20:30:53 2020
New Revision: 356284
URL: https://svnweb.freebsd.org/changeset/base/356284
Log:
Remove extra check for provider being closed.
We already checked for that earlier, and since we hold topology lock
it could not change.
MFC after: 1 week
Modified:
head/sys/geom/eli/g_eli.c
Modified: head/sys/geom/eli/g_eli.c
==============================================================================
--- head/sys/geom/eli/g_eli.c Thu Jan 2 19:55:09 2020 (r356283)
+++ head/sys/geom/eli/g_eli.c Thu Jan 2 20:30:53 2020 (r356284)
@@ -1048,8 +1048,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