geom access method and g_topology_lock
Andriy Gapon
avg at FreeBSD.org
Thu Oct 25 08:54:13 UTC 2012
on 25/10/2012 11:41 Poul-Henning Kamp said the following:
> --------
> In message <5088FA15.30205 at FreeBSD.org>, Andriy Gapon writes:
>
>> Both pieces look sane and non-racy (because of g_topology_assert) until we allow
>> g_access (some geom access method, rather) to drop the topology lock.
>
> You lost me there.
>
> g_access() cannot do its job without holding the topology lock.
>
>
Will it help if I repeat my original questions:
Is that bad if a geom's access method drops and re-acquires g_topology_lock
while doing some internal stuff?
Is that allowed at all?
To clarify, if that's needed, by "geom's access method" I meant the 'access'
member with g_access_t type in struct g_geom.
--
Andriy Gapon
More information about the freebsd-geom
mailing list