Author: ae
Date: Thu Jan 26 07:51:51 2012
New Revision: 230566
URL: http://svn.freebsd.org/changeset/base/230566

Log:
  MFC r226880 (modified version):
    Our geom withering function could take some time before geom with its
    providers and consumers will be destroyed.  Before take some actions
    with a geom, check that it is not destroyed at the moment.

Modified:
  stable/8/sys/geom/part/g_part.c
Directory Properties:
  stable/8/sys/   (props changed)

Modified: stable/8/sys/geom/part/g_part.c
==============================================================================
--- stable/8/sys/geom/part/g_part.c     Thu Jan 26 07:42:54 2012        
(r230565)
+++ stable/8/sys/geom/part/g_part.c     Thu Jan 26 07:51:51 2012        
(r230566)
@@ -320,6 +320,8 @@ g_part_parm_geom(const char *name, struc
        gp = g_part_find_geom(name);
        if (gp == NULL)
                return (EINVAL);
+       if ((gp->flags & G_GEOM_WITHER) != 0)
+               return (ENXIO);
        *v = gp;
        return (0);
 }
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to