summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
authorjh <jh@FreeBSD.org>2010-05-10 19:08:53 +0000
committerjh <jh@FreeBSD.org>2010-05-10 19:08:53 +0000
commita27d539c9ac7b17319630c5b530429562f22145c (patch)
tree1a34d54939bdb882e19a92ee3e5ce6474cf88397 /sys/geom
parent699419c73c46525b0e767f63febe29ca690b021e (diff)
downloadFreeBSD-src-a27d539c9ac7b17319630c5b530429562f22145c.zip
FreeBSD-src-a27d539c9ac7b17319630c5b530429562f22145c.tar.gz
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
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/zero/g_zero.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/zero/g_zero.c b/sys/geom/zero/g_zero.c
index 638bd32..b8899e7 100644
--- a/sys/geom/zero/g_zero.c
+++ b/sys/geom/zero/g_zero.c
@@ -104,7 +104,7 @@ g_zero_destroy_geom(struct gctl_req *req __unused, struct g_class *mp __unused,
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 = {
OpenPOWER on IntegriCloud