Date: Mon, 10 May 2010 19:08:53 +0000 (UTC) From: Jaakko Heinonen <jh@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r207877 - head/sys/geom/zero Message-ID: <201005101908.o4AJ8rZL041565@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 = {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005101908.o4AJ8rZL041565>