svn commit: r210746 - head/sys/geom/part
Andrey V. Elsukov
ae at FreeBSD.org
Mon Aug 2 10:26:15 UTC 2010
Author: ae
Date: Mon Aug 2 10:26:15 2010
New Revision: 210746
URL: http://svn.freebsd.org/changeset/base/210746
Log:
Release access for consumers that are opened, but will be destroyed
indirectly by orphan method.
PR: 148688
Silence from: marcel
Approved by: mav (mentor)
MFC after: 2 weeks
Modified:
head/sys/geom/part/g_part.c
Modified: head/sys/geom/part/g_part.c
==============================================================================
--- head/sys/geom/part/g_part.c Mon Aug 2 09:13:09 2010 (r210745)
+++ head/sys/geom/part/g_part.c Mon Aug 2 10:26:15 2010 (r210746)
@@ -1739,6 +1739,7 @@ static void
g_part_orphan(struct g_consumer *cp)
{
struct g_provider *pp;
+ struct g_part_table *table;
pp = cp->provider;
KASSERT(pp != NULL, (__func__));
@@ -1746,6 +1747,9 @@ g_part_orphan(struct g_consumer *cp)
g_topology_assert();
KASSERT(pp->error != 0, (__func__));
+ table = cp->geom->softc;
+ if (table->gpt_opened)
+ g_access(cp, -1, -1, -1);
g_part_wither(cp->geom, pp->error);
}
More information about the svn-src-all
mailing list