Author: ae
Date: Mon Jul 25 09:12:08 2016
New Revision: 303288
URL: https://svnweb.freebsd.org/changeset/base/303288

Log:
  Do not invoke resize method if geom is being withered.
  
  PR:           211028
  MFC after:    2 weeks

Modified:
  head/sys/geom/geom_subr.c

Modified: head/sys/geom/geom_subr.c
==============================================================================
--- head/sys/geom/geom_subr.c   Mon Jul 25 08:13:50 2016        (r303287)
+++ head/sys/geom/geom_subr.c   Mon Jul 25 09:12:08 2016        (r303288)
@@ -636,7 +636,7 @@ g_resize_provider_event(void *arg, int f
        
        LIST_FOREACH_SAFE(cp, &pp->consumers, consumers, cp2) {
                gp = cp->geom;
-               if (gp->resize != NULL)
+               if ((gp->flags & G_GEOM_WITHER) == 0 && gp->resize != NULL)
                        gp->resize(cp);
        }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to