Author: jh
Date: Mon May 10 19:08:53 2010
New Revision: 207877
URL: http://svn.freebsd.org/changeset/base/207877

Log:
  In g_zero_destroy_geom(), return 0 instead of EBUSY in the success case.
  EBUSY was probably used as a workaround for the deadlock fixed in r207671.
  
  Approved by:  pjd
  X-MFC after:  r207671

Modified:
  head/sys/geom/zero/g_zero.c

Modified: head/sys/geom/zero/g_zero.c
==============================================================================
--- head/sys/geom/zero/g_zero.c Mon May 10 19:02:22 2010        (r207876)
+++ head/sys/geom/zero/g_zero.c Mon May 10 19:08:53 2010        (r207877)
@@ -104,7 +104,7 @@ g_zero_destroy_geom(struct gctl_req *req
        if (pp->acr > 0 || pp->acw > 0 || pp->ace > 0)
                return (EBUSY);
        g_wither_geom(gp, ENXIO);
-       return (EBUSY);
+       return (0);
 }
 
 static struct g_class g_zero_class = {
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to